diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 18:35:06 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 18:35:06 +0000 |
commit | 92926d9fd44a3aa9473afd15ce8b5c6f7f7d192c (patch) | |
tree | 419b2a4640e48dfbe0880abcd50d8230849c561e /chrome/browser/cocoa/history_menu_bridge.h | |
parent | 23b0a94cb3cdf3154e05efb68ad21225859f451a (diff) | |
download | chromium_src-92926d9fd44a3aa9473afd15ce8b5c6f7f7d192c.zip chromium_src-92926d9fd44a3aa9473afd15ce8b5c6f7f7d192c.tar.gz chromium_src-92926d9fd44a3aa9473afd15ce8b5c6f7f7d192c.tar.bz2 |
FBTF: Reaplly the TabRestoreService::Observer into its own file commit.
This means browser.h no longer includes a large chunk of the tab restore
system. Now with fixes to chromeos.
BUG=none
TEST=compiles
First Review URL: http://codereview.chromium.org/3296003
Review URL: http://codereview.chromium.org/3358005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58382 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/history_menu_bridge.h')
-rw-r--r-- | chrome/browser/cocoa/history_menu_bridge.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/chrome/browser/cocoa/history_menu_bridge.h b/chrome/browser/cocoa/history_menu_bridge.h index 55dab4d..2743752 100644 --- a/chrome/browser/cocoa/history_menu_bridge.h +++ b/chrome/browser/cocoa/history_menu_bridge.h @@ -16,6 +16,7 @@ #include "chrome/browser/history/history.h" #include "chrome/browser/sessions/session_id.h" #include "chrome/browser/sessions/tab_restore_service.h" +#include "chrome/browser/sessions/tab_restore_service_observer.h" #include "chrome/common/notification_observer.h" class NavigationEntry; @@ -23,6 +24,7 @@ class NotificationRegistrar; class PageUsageData; class Profile; class TabNavigationEntry; +class TabRestoreService; @class HistoryMenuCocoaController; namespace { @@ -54,26 +56,16 @@ class HistoryMenuBridgeTest; // controller is very thin and only exists to interact with Cocoa, but this // class does the bulk of the work. class HistoryMenuBridge : public NotificationObserver, - public TabRestoreService::Observer { + public TabRestoreServiceObserver { public: // This is a generalization of the data we store in the history menu because // we pull things from different sources with different data types. struct HistoryItem { public: - HistoryItem() - : icon_requested(false), - menu_item(nil), - session_id(0) {} - + HistoryItem(); // Copy constructor allowed. - HistoryItem(const HistoryItem& copy) - : title(copy.title), - url(copy.url), - icon_requested(false), - menu_item(nil), - session_id(copy.session_id) {} - - ~HistoryItem() {} + HistoryItem(const HistoryItem& copy); + ~HistoryItem(); // The title for the menu item. string16 title; @@ -136,7 +128,7 @@ class HistoryMenuBridge : public NotificationObserver, const NotificationSource& source, const NotificationDetails& details); - // For TabRestoreService::Observer + // For TabRestoreServiceObserver virtual void TabRestoreServiceChanged(TabRestoreService* service); virtual void TabRestoreServiceDestroyed(TabRestoreService* service); |