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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
===================================================================
--- content/renderer/render_frame_impl.cc (revision 238847)
+++ content/renderer/render_frame_impl.cc (working copy)
@@ -467,6 +467,10 @@
return false;
}
+int RenderFrameImpl::GetRoutingID() {
+ return routing_id_;
+}
+
blink::WebPlugin* RenderFrameImpl::CreatePlugin(
blink::WebFrame* frame,
const WebPluginInfo& info,
@@ -510,9 +514,10 @@
#if defined(ENABLE_PLUGINS)
WebPluginInfo info;
std::string mime_type;
- bool found = render_view_->GetPluginInfo(
- params.url, frame->top()->document().url(), params.mimeType.utf8(),
- &info, &mime_type);
+ bool found = false;
+ Send(new FrameHostMsg_GetPluginInfo(
+ routing_id_, params.url, frame->top()->document().url(),
+ params.mimeType.utf8(), &found, &info, &mime_type));
if (!found)
return NULL;
@@ -1026,6 +1031,7 @@
new RequestExtraData(referrer_policy,
custom_user_agent,
was_after_preconnect_request,
+ routing_id_,
(frame == top_frame),
frame->identifier(),
GURL(frame->document().securityOrigin().toString()),
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698