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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/sessions/session_id.h" | 9 #include "chrome/browser/sessions/session_id.h" |
10 #include "chrome/browser/sync/glue/synced_tab_delegate.h" | 10 #include "chrome/browser/sync/glue/synced_tab_delegate.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual int GetEntryCount() const OVERRIDE; | 30 virtual int GetEntryCount() const OVERRIDE; |
31 virtual int GetPendingEntryIndex() const OVERRIDE; | 31 virtual int GetPendingEntryIndex() const OVERRIDE; |
32 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; | 32 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; |
33 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; | 33 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; |
34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; | 34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; |
35 virtual bool ProfileIsManaged() const OVERRIDE; | 35 virtual bool ProfileIsManaged() const OVERRIDE; |
36 virtual const std::vector<const content::NavigationEntry*>* | 36 virtual const std::vector<const content::NavigationEntry*>* |
37 GetBlockedNavigations() const OVERRIDE; | 37 GetBlockedNavigations() const OVERRIDE; |
38 virtual bool IsPinned() const OVERRIDE; | 38 virtual bool IsPinned() const OVERRIDE; |
39 virtual bool HasWebContents() const OVERRIDE; | 39 virtual bool HasWebContents() const OVERRIDE; |
| 40 virtual int64 GetSyncId() const OVERRIDE; |
| 41 virtual void SetSyncId(int64 sync_id) OVERRIDE; |
40 | 42 |
41 private: | 43 private: |
42 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); | 44 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); |
43 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; | 45 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; |
44 | 46 |
45 content::WebContents* web_contents_; | 47 content::WebContents* web_contents_; |
| 48 int64 sync_session_id_; |
46 | 49 |
47 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); |
48 }; | 51 }; |
49 | 52 |
50 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ | 53 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ |
OLD | NEW |