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" |
11 | 11 |
12 class TabContents; | 12 class TabContents; |
13 | 13 |
14 class TabContentsSyncedTabDelegate | 14 class TabContentsSyncedTabDelegate |
15 : public browser_sync::SyncedTabDelegate { | 15 : public browser_sync::SyncedTabDelegate { |
16 public: | 16 public: |
17 explicit TabContentsSyncedTabDelegate(TabContents* tab_contents); | 17 explicit TabContentsSyncedTabDelegate(TabContents* tab_contents); |
18 virtual ~TabContentsSyncedTabDelegate(); | 18 virtual ~TabContentsSyncedTabDelegate(); |
19 | 19 |
20 // Methods from SyncedTabDelegate. | 20 // Methods from SyncedTabDelegate. |
21 virtual SessionID::id_type GetWindowId() const OVERRIDE; | 21 virtual SessionID::id_type GetWindowId() const OVERRIDE; |
22 virtual SessionID::id_type GetSessionId() const OVERRIDE; | 22 virtual SessionID::id_type GetSessionId() const OVERRIDE; |
23 virtual bool IsBeingDestroyed() const OVERRIDE; | 23 virtual bool IsBeingDestroyed() const OVERRIDE; |
24 virtual Profile* profile() const OVERRIDE; | 24 virtual Profile* profile() const OVERRIDE; |
25 virtual bool HasExtensionAppId() const OVERRIDE; | 25 virtual std::string GetExtensionAppId() const OVERRIDE; |
26 virtual const std::string& GetExtensionAppId() const OVERRIDE; | |
27 virtual int GetCurrentEntryIndex() const OVERRIDE; | 26 virtual int GetCurrentEntryIndex() const OVERRIDE; |
28 virtual int GetEntryCount() const OVERRIDE; | 27 virtual int GetEntryCount() const OVERRIDE; |
29 virtual int GetPendingEntryIndex() const OVERRIDE; | 28 virtual int GetPendingEntryIndex() const OVERRIDE; |
30 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; | 29 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; |
31 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; | 30 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; |
32 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; | 31 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; |
| 32 virtual bool IsPinned() const OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 TabContents* tab_contents_; | 35 TabContents* tab_contents_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); | 37 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); |
38 }; | 38 }; |
39 | 39 |
40 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ | 40 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ |
OLD | NEW |