| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WRAPPER_SYNCED_TAB_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_WRAPPER_SYNCED_TAB_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_WRAPPER_SYNCED_TAB_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_WRAPPER_SYNCED_TAB_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/sessions/session_id.h" | 10 #include "chrome/browser/sessions/session_id.h" |
| 11 #include "chrome/browser/sync/glue/synced_tab_delegate.h" | 11 #include "chrome/browser/sync/glue/synced_tab_delegate.h" |
| 12 | 12 |
| 13 class TabContentsWrapper; | 13 class TabContents; |
| 14 typedef TabContents TabContentsWrapper; |
| 14 | 15 |
| 15 class TabContentsWrapperSyncedTabDelegate | 16 class TabContentsWrapperSyncedTabDelegate |
| 16 : public browser_sync::SyncedTabDelegate { | 17 : public browser_sync::SyncedTabDelegate { |
| 17 public: | 18 public: |
| 18 explicit TabContentsWrapperSyncedTabDelegate( | 19 explicit TabContentsWrapperSyncedTabDelegate( |
| 19 TabContentsWrapper* tab_contents_wrapper); | 20 TabContentsWrapper* tab_contents_wrapper); |
| 20 virtual ~TabContentsWrapperSyncedTabDelegate(); | 21 virtual ~TabContentsWrapperSyncedTabDelegate(); |
| 21 | 22 |
| 22 // Methods from SyncedTabDelegate. | 23 // Methods from SyncedTabDelegate. |
| 23 virtual SessionID::id_type GetWindowId() const OVERRIDE; | 24 virtual SessionID::id_type GetWindowId() const OVERRIDE; |
| 24 virtual SessionID::id_type GetSessionId() const OVERRIDE; | 25 virtual SessionID::id_type GetSessionId() const OVERRIDE; |
| 25 virtual bool IsBeingDestroyed() const OVERRIDE; | 26 virtual bool IsBeingDestroyed() const OVERRIDE; |
| 26 virtual Profile* profile() const OVERRIDE; | 27 virtual Profile* profile() const OVERRIDE; |
| 27 virtual bool HasExtensionAppId() const OVERRIDE; | 28 virtual bool HasExtensionAppId() const OVERRIDE; |
| 28 virtual const std::string& GetExtensionAppId() const OVERRIDE; | 29 virtual const std::string& GetExtensionAppId() const OVERRIDE; |
| 29 virtual int GetCurrentEntryIndex() const OVERRIDE; | 30 virtual int GetCurrentEntryIndex() const OVERRIDE; |
| 30 virtual int GetEntryCount() const OVERRIDE; | 31 virtual int GetEntryCount() const OVERRIDE; |
| 31 virtual int GetPendingEntryIndex() const OVERRIDE; | 32 virtual int GetPendingEntryIndex() const OVERRIDE; |
| 32 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; | 33 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; |
| 33 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; | 34 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; |
| 34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; | 35 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 TabContentsWrapper* tab_contents_wrapper_; | 38 TabContentsWrapper* tab_contents_wrapper_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperSyncedTabDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperSyncedTabDelegate); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_WRAPPER_SYNCED_TAB_DELEGATE_H_ | 43 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_WRAPPER_SYNCED_TAB_DELEGATE_H_ |
| OLD | NEW |