summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 17:34:57 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 17:34:57 +0000
commitb36a9f99e21193b08a58336a1a974893ac46a31a (patch)
treeeb3c80709ae56c234454fe7388fe32f54a2ce1b5 /chrome_frame/chrome_frame_automation.h
parent5779bad3e1753ca61a0de9fa28ce44df63f08579 (diff)
downloadchromium_src-b36a9f99e21193b08a58336a1a974893ac46a31a.zip
chromium_src-b36a9f99e21193b08a58336a1a974893ac46a31a.tar.gz
chromium_src-b36a9f99e21193b08a58336a1a974893ac46a31a.tar.bz2
When Chrome hands off a URL to be opened by the external host by the ViewHostMsg_OpenURL IPC, it
needs to pass the referrer as well. The Chrome fixes in this CL are mostly related to passing the HTTP referer off to the browser and from there to the ExternalTabContainer to ChromeFrame and back. The ChromeFrame changes are basically around the same lines with one exception. When we handle the AutomationMsg_OpenURL IPC in the activex and the active document we pass the referer if applicable to the WebBrowser2::Navigate2 interface, which is then read by the BHO in BeforeNavigate2. We then save away an AddRef'ed BHO pointer in TLS which is then referenced by the Active document for reading the referer and passing it off to Chrome in the NavigateInExternalTab message. Added a unit test in ChromeFrame which tests this case. This fixes http://code.google.com/p/chromium/issues/detail?id=22994 Bug=22994 Review URL: http://codereview.chromium.org/274071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.h')
-rw-r--r--chrome_frame/chrome_frame_automation.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome_frame/chrome_frame_automation.h b/chrome_frame/chrome_frame_automation.h
index 0d647eb..31acc97 100644
--- a/chrome_frame/chrome_frame_automation.h
+++ b/chrome_frame/chrome_frame_automation.h
@@ -190,7 +190,9 @@ class ChromeFrameAutomationClient
bool incognito);
void Uninitialize();
- virtual bool InitiateNavigation(const std::string& url, bool is_privileged);
+ virtual bool InitiateNavigation(const std::string& url,
+ const std::string& referrer,
+ bool is_privileged);
virtual bool NavigateToIndex(int index);
bool ForwardMessageFromExternalHost(const std::string& message,
const std::string& origin,
@@ -308,7 +310,7 @@ class ChromeFrameAutomationClient
void CallDelegateImpl(Task* delegate_task);
HWND chrome_window() const { return chrome_window_; }
- void BeginNavigate(const GURL& url);
+ void BeginNavigate(const GURL& url, const GURL& referrer);
void BeginNavigateCompleted(AutomationMsg_NavigationResponseValues result);
// Helpers