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

Side by Side Diff: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.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 (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_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 void GetSerializedNavigationAtIndex( 39 void GetSerializedNavigationAtIndex(
40 int i, 40 int i,
41 sessions::SerializedNavigationEntry* serialized_entry) const override; 41 sessions::SerializedNavigationEntry* serialized_entry) const override;
42 bool ProfileIsSupervised() const override; 42 bool ProfileIsSupervised() const override;
43 const std::vector<std::unique_ptr<const sessions::SerializedNavigationEntry>>* 43 const std::vector<std::unique_ptr<const sessions::SerializedNavigationEntry>>*
44 GetBlockedNavigations() const override; 44 GetBlockedNavigations() const override;
45 bool IsPlaceholderTab() const override; 45 bool IsPlaceholderTab() const override;
46 int GetSyncId() const override; 46 int GetSyncId() const override;
47 void SetSyncId(int sync_id) override; 47 void SetSyncId(int sync_id) override;
48 bool ShouldSync(sync_sessions::SyncSessionsClient* sessions_client) override; 48 bool ShouldSync(sync_sessions::SyncSessionsClient* sessions_client) override;
49 SessionID::id_type GetSourceTabID() const override;
49 50
50 private: 51 private:
51 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); 52 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents);
52 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; 53 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>;
53 54
54 content::WebContents* web_contents_; 55 content::WebContents* web_contents_;
55 int sync_session_id_; 56 int sync_session_id_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); 58 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate);
58 }; 59 };
59 60
60 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 61 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698