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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. 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_ANDROID_TAB_MODEL_TAB_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/ui/android/tab_model/android_live_tab_context.h" 11 #include "chrome/browser/ui/android/tab_model/android_live_tab_context.h"
12 #include "components/sessions/core/session_id.h" 12 #include "components/sessions/core/session_id.h"
13 #include "components/sync_sessions/synced_window_delegate.h" 13 #include "components/sync_sessions/synced_window_delegate.h"
14 #include "components/toolbar/toolbar_model.h" 14 #include "components/toolbar/toolbar_model.h"
15 #include "components/toolbar/toolbar_model_delegate.h" 15 #include "components/toolbar/toolbar_model_delegate.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 18
19 namespace browser_sync { 19 namespace browser_sync {
20 class SyncedWindowDelegate;
21 class SyncedWindowDelegateAndroid; 20 class SyncedWindowDelegateAndroid;
22 } 21 }
23 22
24 namespace content { 23 namespace content {
25 class WebContents; 24 class WebContents;
26 } 25 }
27 26
27 namespace sync_sessions {
28 class SyncedWindowDelegate;
29 }
30
28 class Profile; 31 class Profile;
29 class TabAndroid; 32 class TabAndroid;
30 33
31 // Abstract representation of a Tab Model for Android. Since Android does 34 // Abstract representation of a Tab Model for Android. Since Android does
32 // not use Browser/BrowserList, this is required to allow Chrome to interact 35 // not use Browser/BrowserList, this is required to allow Chrome to interact
33 // with Android's Tabs and Tab Model. 36 // with Android's Tabs and Tab Model.
34 class TabModel : public content::NotificationObserver { 37 class TabModel : public content::NotificationObserver {
35 public: 38 public:
36 virtual Profile* GetProfile() const; 39 virtual Profile* GetProfile() const;
37 virtual bool IsOffTheRecord() const; 40 virtual bool IsOffTheRecord() const;
38 virtual browser_sync::SyncedWindowDelegate* GetSyncedWindowDelegate() const; 41 virtual sync_sessions::SyncedWindowDelegate* GetSyncedWindowDelegate() const;
39 virtual SessionID::id_type GetSessionId() const; 42 virtual SessionID::id_type GetSessionId() const;
40 virtual const SessionID& SessionId() const; 43 virtual const SessionID& SessionId() const;
41 virtual sessions::LiveTabContext* GetLiveTabContext() const; 44 virtual sessions::LiveTabContext* GetLiveTabContext() const;
42 45
43 virtual int GetTabCount() const = 0; 46 virtual int GetTabCount() const = 0;
44 virtual int GetActiveIndex() const = 0; 47 virtual int GetActiveIndex() const = 0;
45 virtual content::WebContents* GetActiveWebContents() const; 48 virtual content::WebContents* GetActiveWebContents() const;
46 virtual content::WebContents* GetWebContentsAt(int index) const = 0; 49 virtual content::WebContents* GetWebContentsAt(int index) const = 0;
47 // This will return NULL if the tab has not yet been initialized. 50 // This will return NULL if the tab has not yet been initialized.
48 virtual TabAndroid* GetTabAt(int index) const = 0; 51 virtual TabAndroid* GetTabAt(int index) const = 0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // across sessions. 100 // across sessions.
98 SessionID session_id_; 101 SessionID session_id_;
99 102
100 // The Registrar used to register TabModel for notifications. 103 // The Registrar used to register TabModel for notifications.
101 content::NotificationRegistrar registrar_; 104 content::NotificationRegistrar registrar_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(TabModel); 106 DISALLOW_COPY_AND_ASSIGN(TabModel);
104 }; 107 };
105 108
106 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ 109 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sessions_helper.cc ('k') | chrome/browser/ui/android/tab_model/tab_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698