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

Unified Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 574403002: If a RemoteFrame asks to navigate, send an OpenURL IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +plumbing and test Created 6 years, 3 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
Index: content/browser/frame_host/render_frame_proxy_host.cc
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/content/browser/frame_host/render_frame_proxy_host.cc
index 35ed28639884b1216268a3f5b84f3171f1a7eb8f..153ea8bb91338c0da4e489fc15ff571e54012b1d 100644
--- a/content/browser/frame_host/render_frame_proxy_host.cc
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
@@ -100,6 +100,14 @@ bool RenderFrameProxyHost::Send(IPC::Message *msg) {
}
bool RenderFrameProxyHost::OnMessageReceived(const IPC::Message& msg) {
+ bool handled = true;
Charlie Reis 2014/09/18 20:22:27 Let's move this new block to the end of the method
Nate Chapin 2014/09/18 22:39:02 Done.
+ IPC_BEGIN_MESSAGE_MAP(RenderFrameProxyHost, msg)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_OpenURL, OnOpenURL)
+ IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_END_MESSAGE_MAP()
+ if (handled)
+ return true;
+
if (cross_process_frame_connector_.get() &&
cross_process_frame_connector_->OnMessageReceived(msg))
return true;
@@ -143,4 +151,9 @@ void RenderFrameProxyHost::DisownOpener() {
Send(new FrameMsg_DisownOpener(GetRoutingID()));
}
+void RenderFrameProxyHost::OnOpenURL(
+ const FrameHostMsg_OpenURL_Params& params) {
+ frame_tree_node_->current_frame_host()->OpenURL(params);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698