diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 21:49:36 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 21:49:36 +0000 |
commit | 19d9f3aa28eb43ba6c7e016536c2ddcba420bb3f (patch) | |
tree | 093abeadc51473562332c3c081ac644c98f13b6d /chrome/browser/browser.h | |
parent | 88e14385b146cc0091d02d53913c43c1ed5db1e6 (diff) | |
download | chromium_src-19d9f3aa28eb43ba6c7e016536c2ddcba420bb3f.zip chromium_src-19d9f3aa28eb43ba6c7e016536c2ddcba420bb3f.tar.gz chromium_src-19d9f3aa28eb43ba6c7e016536c2ddcba420bb3f.tar.bz2 |
Add support for SINGLETON_TAB disposition to BrowserNavigator.
Also makes Browser support browser::NavigatorDelegate.
BUG=none
TEST=BrowserNavigatorTest.Disposition_SingletonTab*
Review URL: http://codereview.chromium.org/3734003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index 0936bbb..f757e62 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -631,6 +631,16 @@ class Browser : public TabHandlerDelegate, // not null. int GetLastBlockedCommand(WindowOpenDisposition* disposition); + // Called by browser::Navigate() when a navigation has occurred in a tab in + // this Browser. Updates the UI for the start of this navigation. + void UpdateUIForNavigationInTab(TabContents* contents, + PageTransition::Type transition, + bool user_initiated); + + // Called by browser::Navigate() to retrieve the home page if no URL is + // specified. + GURL GetHomePage() const; + // Interface implementations //////////////////////////////////////////////// // Overridden from PageNavigator: @@ -645,6 +655,7 @@ class Browser : public TabHandlerDelegate, virtual void TabRestoreServiceChanged(TabRestoreService* service); virtual void TabRestoreServiceDestroyed(TabRestoreService* service); + // Overridden from TabHandlerDelegate: virtual Profile* GetProfile() const; virtual Browser* AsBrowser(); @@ -930,10 +941,6 @@ class Browser : public TabHandlerDelegate, int index, int add_types); - // Returns what the user's home page is, or the new tab page if the home page - // has not been set. - GURL GetHomePage() const; - // Shows the Find Bar, optionally selecting the next entry that matches the // existing search string for that Tab. |forward_direction| controls the // search direction. |