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

Side by Side Diff: chrome/browser/sync/glue/synced_tab_delegate_android.h

Issue 2753753005: [sync] WebContentsObserver based sessions notifications (Closed)
Patch Set: use base:MakeUnique, alphabetize Created 3 years, 9 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 // a method to set web contents later when tab is brought to memory. 28 // a method to set web contents later when tab is brought to memory.
29 class SyncedTabDelegateAndroid : public sync_sessions::SyncedTabDelegate { 29 class SyncedTabDelegateAndroid : public sync_sessions::SyncedTabDelegate {
30 public: 30 public:
31 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_); 31 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_);
32 ~SyncedTabDelegateAndroid() override; 32 ~SyncedTabDelegateAndroid() override;
33 33
34 // SyncedTabDelegate: 34 // SyncedTabDelegate:
35 SessionID::id_type GetWindowId() const override; 35 SessionID::id_type GetWindowId() const override;
36 SessionID::id_type GetSessionId() const override; 36 SessionID::id_type GetSessionId() const override;
37 bool IsBeingDestroyed() const override; 37 bool IsBeingDestroyed() const override;
38 SessionID::id_type GetSourceTabID() const override;
38 std::string GetExtensionAppId() const override; 39 std::string GetExtensionAppId() const override;
39 bool IsInitialBlankNavigation() const override; 40 bool IsInitialBlankNavigation() const override;
40 int GetCurrentEntryIndex() const override; 41 int GetCurrentEntryIndex() const override;
41 int GetEntryCount() const override; 42 int GetEntryCount() const override;
42 GURL GetVirtualURLAtIndex(int i) const override; 43 GURL GetVirtualURLAtIndex(int i) const override;
43 GURL GetFaviconURLAtIndex(int i) const override; 44 GURL GetFaviconURLAtIndex(int i) const override;
44 ui::PageTransition GetTransitionAtIndex(int i) const override; 45 ui::PageTransition GetTransitionAtIndex(int i) const override;
45 void GetSerializedNavigationAtIndex( 46 void GetSerializedNavigationAtIndex(
46 int i, 47 int i,
47 sessions::SerializedNavigationEntry* serialized_entry) const override; 48 sessions::SerializedNavigationEntry* serialized_entry) const override;
(...skipping 14 matching lines...) Expand all
62 private: 63 private:
63 content::WebContents* web_contents_; 64 content::WebContents* web_contents_;
64 TabAndroid* tab_android_; 65 TabAndroid* tab_android_;
65 TabContentsSyncedTabDelegate* tab_contents_delegate_; 66 TabContentsSyncedTabDelegate* tab_contents_delegate_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); 68 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid);
68 }; 69 };
69 } // namespace browser_sync 70 } // namespace browser_sync
70 71
71 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ 72 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | chrome/browser/sync/glue/synced_tab_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698