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

Unified Diff: content/renderer/npapi/webplugin_delegate_proxy.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/npapi/webplugin_delegate_proxy.h ('k') | content/renderer/npapi/webplugin_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/webplugin_delegate_proxy.cc
===================================================================
--- content/renderer/npapi/webplugin_delegate_proxy.cc (revision 238847)
+++ content/renderer/npapi/webplugin_delegate_proxy.cc (working copy)
@@ -31,6 +31,7 @@
#include "content/child/npapi/webplugin_resource_client.h"
#include "content/child/plugin_messages.h"
#include "content/common/content_constants_internal.h"
+#include "content/common/frame_messages.h"
#include "content/common/view_messages.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/renderer/npapi/plugin_channel_host.h"
@@ -202,8 +203,10 @@
WebPluginDelegateProxy::WebPluginDelegateProxy(
WebPluginImpl* plugin,
const std::string& mime_type,
- const base::WeakPtr<RenderViewImpl>& render_view)
+ const base::WeakPtr<RenderViewImpl>& render_view,
+ RenderFrameImpl* render_frame)
: render_view_(render_view),
+ render_frame_(render_frame),
plugin_(plugin),
uses_shared_bitmaps_(false),
#if defined(OS_MACOSX)
@@ -305,8 +308,8 @@
#endif
IPC::ChannelHandle channel_handle;
- if (!RenderThreadImpl::current()->Send(new ViewHostMsg_OpenChannelToPlugin(
- render_view_->routing_id(), url, page_url_, mime_type_,
+ if (!RenderThreadImpl::current()->Send(new FrameHostMsg_OpenChannelToPlugin(
+ render_frame_->GetRoutingID(), url, page_url_, mime_type_,
&channel_handle, &info_))) {
continue;
}
« no previous file with comments | « content/renderer/npapi/webplugin_delegate_proxy.h ('k') | content/renderer/npapi/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698