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

Unified Diff: chrome_frame/chrome_frame_automation.cc

Issue 274071: When Chrome hands off a URL to be opened by the external host by the ViewHost... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_frame_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_automation.cc
===================================================================
--- chrome_frame/chrome_frame_automation.cc (revision 29317)
+++ chrome_frame/chrome_frame_automation.cc (working copy)
@@ -483,8 +483,8 @@
init_state_ = UNINITIALIZED;
}
-bool ChromeFrameAutomationClient::InitiateNavigation(const std::string& url,
- bool is_privileged) {
+bool ChromeFrameAutomationClient::InitiateNavigation(
+ const std::string& url, const std::string& referrer, bool is_privileged) {
if (url.empty())
return false;
@@ -498,7 +498,7 @@
}
if (is_initialized()) {
- BeginNavigate(GURL(url));
+ BeginNavigate(GURL(url), GURL(referrer));
}
return true;
@@ -538,7 +538,8 @@
return true;
}
-void ChromeFrameAutomationClient::BeginNavigate(const GURL& url) {
+void ChromeFrameAutomationClient::BeginNavigate(const GURL& url,
+ const GURL& referrer) {
// Could be NULL if we failed to launch Chrome in LaunchAutomationServer()
if (!automation_server_ || !tab_.get()) {
DLOG(WARNING) << "BeginNavigate - can't navigate.";
@@ -554,7 +555,8 @@
}
IPC::SyncMessage* msg =
- new AutomationMsg_NavigateInExternalTab(0, tab_->handle(), url, NULL);
+ new AutomationMsg_NavigateInExternalTab(0, tab_->handle(), url,
+ referrer, NULL);
automation_server_->SendAsAsync(msg, NewCallback(this,
&ChromeFrameAutomationClient::BeginNavigateCompleted), this);
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_frame_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698