Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.h ('k') | chrome/browser/ui/tab_contents/core_tab_helper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698