Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / sync / glue / synced_window_delegate_android.h
blob865f6a7efb292d186a5493b242b85a7f15b3c06a
1 // Copyright (c) 2012 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_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_
8 #include "base/compiler_specific.h"
9 #include "components/sessions/session_id.h"
10 #include "components/sync_driver/glue/synced_window_delegate.h"
12 class TabModel;
14 namespace browser_sync {
16 class SyncedTabDelegate;
18 class SyncedWindowDelegateAndroid : public browser_sync::SyncedWindowDelegate {
19 public:
20 explicit SyncedWindowDelegateAndroid(TabModel* tab_model);
21 ~SyncedWindowDelegateAndroid() override;
23 // browser_sync::SyncedWindowDelegate implementation.
25 bool HasWindow() const override;
26 SessionID::id_type GetSessionId() const override;
27 int GetTabCount() const override;
28 int GetActiveIndex() const override;
29 bool IsApp() const override;
30 bool IsTypeTabbed() const override;
31 bool IsTypePopup() const override;
32 bool IsTabPinned(const SyncedTabDelegate* tab) const override;
33 SyncedTabDelegate* GetTabAt(int index) const override;
34 SessionID::id_type GetTabIdAt(int index) const override;
35 bool IsSessionRestoreInProgress() const override;
36 bool ShouldSync() const override;
38 private:
39 TabModel* tab_model_;
41 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegateAndroid);
44 } // namespace browser_sync
46 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_