Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / sync / glue / synced_window_delegates_getter_android.h
blob3f69a77a511ce1830dd385b5bc31f880939ef1ea
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_
8 #include <set>
10 #include "base/macros.h"
11 #include "components/sync_driver/sessions/synced_window_delegates_getter.h"
13 namespace browser_sync {
15 class SyncedWindowDelegate;
17 // This class defines how to access SyncedWindowDelegates on Android.
18 class SyncedWindowDelegatesGetterAndroid : public SyncedWindowDelegatesGetter {
19 public:
20 SyncedWindowDelegatesGetterAndroid();
21 ~SyncedWindowDelegatesGetterAndroid() override;
23 // SyncedWindowDelegatesGetter implementation
24 std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() override;
25 const SyncedWindowDelegate* FindById(SessionID::id_type id) override;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegatesGetterAndroid);
31 } // namespace browser_sync
33 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_