summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-29 04:41:37 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-29 04:41:37 +0000
commitf381dfa196a8da9382ff6c4b109216b5d166c148 (patch)
treedc19827a840a509c5b539fdfe2507c54a9078647 /chrome/browser/browser.h
parent3dfc679fda6844272230056dddef10626abf068c (diff)
downloadchromium_src-f381dfa196a8da9382ff6c4b109216b5d166c148.zip
chromium_src-f381dfa196a8da9382ff6c4b109216b5d166c148.tar.gz
chromium_src-f381dfa196a8da9382ff6c4b109216b5d166c148.tar.bz2
Re-land 45894. http://codereview.chromium.org/1732015
TBR=erikkay@chromium.org Review URL: http://codereview.chromium.org/1705012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 3b1eaf4..65eb214 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -801,6 +801,21 @@ class Browser : public TabStripModelDelegate,
// Assorted utility functions ///////////////////////////////////////////////
+ // Checks whether |source| is about to navigate across extension extents, and
+ // if so, navigates in the correct window. For example if this is a normal
+ // browser and we're about to navigate into an extent, this method will
+ // navigate the app's window instead. If we're in an app window and
+ // navigating out of the app, this method will find and navigate a normal
+ // browser instead.
+ //
+ // Returns true if the navigation was handled, eg, it was opened in some other
+ // browser. Returns false if it was not handled.
+ bool HandleCrossAppNavigation(TabContents* source,
+ const GURL& url,
+ const GURL& referrer,
+ WindowOpenDisposition disposition,
+ PageTransition::Type transition);
+
// The low-level function that other OpenURL...() functions call. This
// determines the appropriate SiteInstance to pass to AddTabWithURL(), focuses
// the newly created tab as needed, and does other miscellaneous housekeeping.