Switch plugin creation to use RenderFrame instead of RenderView
BUG=245126
[email protected], [email protected]
Review URL: https://codereview.chromium.org/104973002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238799 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index bc16c75..4671fb5 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -65,6 +65,9 @@
RenderWidget* GetRenderWidget();
#if defined(ENABLE_PLUGINS)
+ // Notification that a PPAPI plugin has been created.
+ void PepperPluginCreated(RendererPpapiHost* host);
+
// Indicates that the given instance has been created.
void PepperInstanceCreated(PepperPluginInstanceImpl* instance);
@@ -156,6 +159,12 @@
// IPC::Listener
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+ // RenderFrame implementation:
+ virtual blink::WebPlugin* CreatePlugin(
+ blink::WebFrame* frame,
+ const WebPluginInfo& info,
+ const blink::WebPluginParams& params) OVERRIDE;
+
// blink::WebFrameClient implementation -------------------------------------
virtual blink::WebPlugin* createPlugin(
blink::WebFrame* frame,