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

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: Disable new test on android/chrome, like others in the same file 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 1e99ff76eac1c83ccae036c7e6c92a72c2add875..6f502f61e8bb006f4d2e2723b8700446367ce71a 100644
--- a/content/browser/frame_host/render_frame_proxy_host.cc
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
@@ -115,7 +115,12 @@ bool RenderFrameProxyHost::OnMessageReceived(const IPC::Message& msg) {
if (render_frame_host_.get())
return render_frame_host_->OnMessageReceived(msg);
- return false;
+ bool handled = true;
+ IPC_BEGIN_MESSAGE_MAP(RenderFrameProxyHost, msg)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_OpenURL, OnOpenURL)
+ IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_END_MESSAGE_MAP()
+ return handled;
}
bool RenderFrameProxyHost::InitRenderFrameProxy() {
@@ -149,4 +154,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
« no previous file with comments | « content/browser/frame_host/render_frame_proxy_host.h ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698