Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Side by Side Diff: chrome/browser/ui/sync/browser_synced_window_delegate.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix Android. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/sessions/core/session_id.h" 10 #include "components/sessions/core/session_id.h"
11 #include "components/sync_sessions/synced_window_delegate.h" 11 #include "components/sync_sessions/synced_window_delegate.h"
12 12
13 class Browser; 13 class Browser;
14 14
15 namespace browser_sync { 15 namespace browser_sync {
16 class SyncedTabDelegate; 16 class SyncedTabDelegate;
17 } 17 }
18 18
19 // A BrowserSyncedWindowDelegate is the Browser-based implementation of 19 // A BrowserSyncedWindowDelegate is the Browser-based implementation of
20 // SyncedWindowDelegate. 20 // SyncedWindowDelegate.
21 class BrowserSyncedWindowDelegate : public browser_sync::SyncedWindowDelegate { 21 class BrowserSyncedWindowDelegate : public sync_sessions::SyncedWindowDelegate {
22 public: 22 public:
23 explicit BrowserSyncedWindowDelegate(Browser* browser); 23 explicit BrowserSyncedWindowDelegate(Browser* browser);
24 ~BrowserSyncedWindowDelegate() override; 24 ~BrowserSyncedWindowDelegate() override;
25 25
26 // SyncedWindowDelegate: 26 // SyncedWindowDelegate:
27 bool HasWindow() const override; 27 bool HasWindow() const override;
28 SessionID::id_type GetSessionId() const override; 28 SessionID::id_type GetSessionId() const override;
29 int GetTabCount() const override; 29 int GetTabCount() const override;
30 int GetActiveIndex() const override; 30 int GetActiveIndex() const override;
31 bool IsApp() const override; 31 bool IsApp() const override;
32 bool IsTypeTabbed() const override; 32 bool IsTypeTabbed() const override;
33 bool IsTypePopup() const override; 33 bool IsTypePopup() const override;
34 bool IsTabPinned(const browser_sync::SyncedTabDelegate* tab) const override; 34 bool IsTabPinned(const sync_sessions::SyncedTabDelegate* tab) const override;
35 browser_sync::SyncedTabDelegate* GetTabAt(int index) const override; 35 sync_sessions::SyncedTabDelegate* GetTabAt(int index) const override;
36 SessionID::id_type GetTabIdAt(int index) const override; 36 SessionID::id_type GetTabIdAt(int index) const override;
37 bool IsSessionRestoreInProgress() const override; 37 bool IsSessionRestoreInProgress() const override;
38 bool ShouldSync() const override; 38 bool ShouldSync() const override;
39 39
40 private: 40 private:
41 Browser* browser_; 41 Browser* browser_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegate); 43 DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegate);
44 }; 44 };
45 45
46 #endif // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_ 46 #endif // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698