diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-27 23:01:50 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-27 23:01:50 +0000 |
commit | c058805b99cce98cbc352c499f3e69fd355a84c2 (patch) | |
tree | 93fb4ffdf5daf4d8ae0e3291919a074a8b9e58a7 /chrome/browser/browser.h | |
parent | f07cc2ebf950cb22c5c386f95a1be0292de4db3b (diff) | |
download | chromium_src-c058805b99cce98cbc352c499f3e69fd355a84c2.zip chromium_src-c058805b99cce98cbc352c499f3e69fd355a84c2.tar.gz chromium_src-c058805b99cce98cbc352c499f3e69fd355a84c2.tar.bz2 |
Plumb the referrer throughout the OpenURL APIs.
http://code.google.com/p/chromium/issues/detail?id=3224
Caveats:
* Did not update TabNavigation yet. Hence session restore will continue to load the tabs with empty referrer.
* Did not plumb referrer into incognito url open. (Not sure what the right thing to do is here with respect to privacy vs compatibility.)
* Did not plumb referrer throughout the automation controller. No functional impact here, but it makes the code inconsistent with the non-automation version.
Review URL: http://codereview.chromium.org/8186
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index e896b18..b63f540 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -193,7 +193,8 @@ class Browser : public TabStripModelDelegate, // Add a new tab with the specified URL. If instance is not null, its process // will be used to render the tab. TabContents* AddTabWithURL( - const GURL& url, PageTransition::Type transition, bool foreground, + const GURL& url, const GURL& referrer, + PageTransition::Type transition, bool foreground, SiteInstance* instance); // Add a new application tab for the specified URL. If lazy is true, the tab @@ -230,6 +231,7 @@ class Browser : public TabStripModelDelegate, // If instance is not null, its process will be used to render the tab. virtual TabContents* CreateTabContentsForURL( const GURL& url, + const GURL& referrer, Profile* profile, PageTransition::Type transition, bool defer_load, @@ -257,7 +259,7 @@ class Browser : public TabStripModelDelegate, // Overridden from TabContentsDelegate: virtual void OpenURLFromTab(TabContents* source, - const GURL& url, + const GURL& url, const GURL& referrer, WindowOpenDisposition disposition, PageTransition::Type transition); virtual void NavigationStateChanged(const TabContents* source, |