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

Unified Diff: chrome/browser/ui/browser.h

Issue 6660028: Decouple TabRestoreService from Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add doc references and fix lint Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 8427344163191a1a50e807411b30a24b11402560..62e64ceb03fc180e71289219f4d4dc0d602e53bb 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -28,6 +28,7 @@
#include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove
#include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove
#include "chrome/browser/ui/browser_navigator.h"
+#include "chrome/browser/ui/browser_tab_restore_service_delegate.h"
sky 2011/03/11 17:40:37 Forward declare and use a scoped_ptr.
torne_google.com 2011/03/14 15:07:25 Done.
#include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
#include "chrome/browser/ui/shell_dialogs.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
@@ -201,6 +202,9 @@ class Browser : public TabHandlerDelegate,
const SessionID& session_id() const { return session_id_; }
CommandUpdater* command_updater() { return &command_updater_; }
bool block_command_execution() const { return block_command_execution_; }
+ TabRestoreServiceDelegate* tab_restore_service_delegate() {
+ return &tab_restore_service_delegate_;
+ }
// Get the FindBarController for this browser, creating it if it does not
// yet exist.
@@ -348,6 +352,7 @@ class Browser : public TabHandlerDelegate,
TabContents* GetSelectedTabContents() const;
TabContents* GetTabContentsAt(int index) const;
void SelectTabContentsAt(int index, bool user_gesture);
+ bool IsTabPinned(int index) const;
void CloseAllTabs();
// Tab adding/showing functions /////////////////////////////////////////////
@@ -1151,6 +1156,9 @@ class Browser : public TabHandlerDelegate,
// and we install ourselves as an observer.
TabRestoreService* tab_restore_service_;
+ // Helper which implements the TabRestoreServiceDelegate interface.
+ BrowserTabRestoreServiceDelegate tab_restore_service_delegate_;
+
scoped_ptr<InstantController> instant_;
scoped_ptr<InstantUnloadHandler> instant_unload_handler_;

Powered by Google App Engine
This is Rietveld 408576698