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 <string> |
| 9 #include <vector> |
| 10 |
8 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 12 #include "base/macros.h" |
10 #include "components/sessions/core/session_id.h" | 13 #include "components/sessions/core/session_id.h" |
11 #include "components/sync_sessions/synced_tab_delegate.h" | 14 #include "components/sync_sessions/synced_tab_delegate.h" |
12 #include "content/public/browser/web_contents_user_data.h" | 15 #include "content/public/browser/web_contents_user_data.h" |
13 | 16 |
14 namespace content { | 17 namespace content { |
15 class WebContents; | 18 class WebContents; |
16 } | 19 } |
17 | 20 |
18 class TabContentsSyncedTabDelegate | 21 class TabContentsSyncedTabDelegate |
19 : public browser_sync::SyncedTabDelegate, | 22 : public sync_sessions::SyncedTabDelegate, |
20 public content::WebContentsUserData<TabContentsSyncedTabDelegate> { | 23 public content::WebContentsUserData<TabContentsSyncedTabDelegate> { |
21 public: | 24 public: |
22 ~TabContentsSyncedTabDelegate() override; | 25 ~TabContentsSyncedTabDelegate() override; |
23 | 26 |
24 // SyncedTabDelegate: | 27 // SyncedTabDelegate: |
25 SessionID::id_type GetWindowId() const override; | 28 SessionID::id_type GetWindowId() const override; |
26 SessionID::id_type GetSessionId() const override; | 29 SessionID::id_type GetSessionId() const override; |
27 bool IsBeingDestroyed() const override; | 30 bool IsBeingDestroyed() const override; |
28 std::string GetExtensionAppId() const override; | 31 std::string GetExtensionAppId() const override; |
29 bool IsInitialBlankNavigation() const override; | 32 bool IsInitialBlankNavigation() const override; |
(...skipping 17 matching lines...) Expand all Loading... |
47 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); | 50 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); |
48 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; | 51 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; |
49 | 52 |
50 content::WebContents* web_contents_; | 53 content::WebContents* web_contents_; |
51 int sync_session_id_; | 54 int sync_session_id_; |
52 | 55 |
53 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); | 56 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); |
54 }; | 57 }; |
55 | 58 |
56 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ | 59 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ |
OLD | NEW |