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

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

Issue 59603009: Removed GetActiveEntry from several tabs related files in chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 11 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) 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 13 matching lines...) Expand all
24 virtual SessionID::id_type GetWindowId() const OVERRIDE; 24 virtual SessionID::id_type GetWindowId() const OVERRIDE;
25 virtual SessionID::id_type GetSessionId() const OVERRIDE; 25 virtual SessionID::id_type GetSessionId() const OVERRIDE;
26 virtual bool IsBeingDestroyed() const OVERRIDE; 26 virtual bool IsBeingDestroyed() const OVERRIDE;
27 virtual Profile* profile() const OVERRIDE; 27 virtual Profile* profile() const OVERRIDE;
28 virtual std::string GetExtensionAppId() const OVERRIDE; 28 virtual std::string GetExtensionAppId() const OVERRIDE;
29 virtual int GetCurrentEntryIndex() const OVERRIDE; 29 virtual int GetCurrentEntryIndex() const OVERRIDE;
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 // TODO(jww): This needs to be split into GetVisibleEntry and
35 // GetLastCommittedEntry, but that requires modifying the parent class,
36 // SyncedTabDelegate, first.
34 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; 37 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE;
35 virtual bool ProfileIsManaged() const OVERRIDE; 38 virtual bool ProfileIsManaged() const OVERRIDE;
36 virtual const std::vector<const content::NavigationEntry*>* 39 virtual const std::vector<const content::NavigationEntry*>*
37 GetBlockedNavigations() const OVERRIDE; 40 GetBlockedNavigations() const OVERRIDE;
38 virtual bool IsPinned() const OVERRIDE; 41 virtual bool IsPinned() const OVERRIDE;
39 virtual bool HasWebContents() const OVERRIDE; 42 virtual bool HasWebContents() const OVERRIDE;
40 virtual content::WebContents* GetWebContents() const OVERRIDE; 43 virtual content::WebContents* GetWebContents() const OVERRIDE;
41 virtual int GetSyncId() const OVERRIDE; 44 virtual int GetSyncId() const OVERRIDE;
42 virtual void SetSyncId(int sync_id) OVERRIDE; 45 virtual void SetSyncId(int sync_id) OVERRIDE;
43 46
44 private: 47 private:
45 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents); 48 explicit TabContentsSyncedTabDelegate(content::WebContents* web_contents);
46 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>; 49 friend class content::WebContentsUserData<TabContentsSyncedTabDelegate>;
47 50
48 content::WebContents* web_contents_; 51 content::WebContents* web_contents_;
49 int sync_session_id_; 52 int sync_session_id_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate); 54 DISALLOW_COPY_AND_ASSIGN(TabContentsSyncedTabDelegate);
52 }; 55 };
53 56
54 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_ 57 #endif // CHROME_BROWSER_UI_SYNC_TAB_CONTENTS_SYNCED_TAB_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/tab_applescript.mm ('k') | chrome/browser/ui/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698