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

Side by Side Diff: chrome/browser/sync/glue/synced_tab_delegate_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "components/sync_sessions/synced_tab_delegate.h" 13 #include "components/sync_sessions/synced_tab_delegate.h"
13 #include "content/public/browser/web_contents_user_data.h" 14 #include "content/public/browser/web_contents_user_data.h"
14 15
15 namespace content { 16 namespace content {
16 class WebContents; 17 class WebContents;
17 } 18 }
18 19
19 class TabAndroid; 20 class TabAndroid;
20 class TabContentsSyncedTabDelegate; 21 class TabContentsSyncedTabDelegate;
21 22
22 namespace browser_sync { 23 namespace browser_sync {
23 // On Android a tab can exist even without web contents. 24 // On Android a tab can exist even without web contents.
24 25
25 // SyncedTabDelegateAndroid wraps TabContentsSyncedTabDelegate and provides 26 // SyncedTabDelegateAndroid wraps TabContentsSyncedTabDelegate and provides
26 // a method to set web contents later when tab is brought to memory. 27 // a method to set web contents later when tab is brought to memory.
27 class SyncedTabDelegateAndroid : public browser_sync::SyncedTabDelegate { 28 class SyncedTabDelegateAndroid : public sync_sessions::SyncedTabDelegate {
28 public: 29 public:
29 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_); 30 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_);
30 ~SyncedTabDelegateAndroid() override; 31 ~SyncedTabDelegateAndroid() override;
31 32
32 // SyncedTabDelegate: 33 // SyncedTabDelegate:
33 SessionID::id_type GetWindowId() const override; 34 SessionID::id_type GetWindowId() const override;
34 SessionID::id_type GetSessionId() const override; 35 SessionID::id_type GetSessionId() const override;
35 bool IsBeingDestroyed() const override; 36 bool IsBeingDestroyed() const override;
36 std::string GetExtensionAppId() const override; 37 std::string GetExtensionAppId() const override;
37 bool IsInitialBlankNavigation() const override; 38 bool IsInitialBlankNavigation() const override;
(...skipping 22 matching lines...) Expand all
60 private: 61 private:
61 content::WebContents* web_contents_; 62 content::WebContents* web_contents_;
62 TabAndroid* tab_android_; 63 TabAndroid* tab_android_;
63 TabContentsSyncedTabDelegate* tab_contents_delegate_; 64 TabContentsSyncedTabDelegate* tab_contents_delegate_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); 66 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid);
66 }; 67 };
67 } // namespace browser_sync 68 } // namespace browser_sync
68 69
69 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ 70 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698