OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |