summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r--content/renderer/render_view_impl.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a3696bd..e207b93 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2135,6 +2135,17 @@ WebPlugin* RenderViewImpl::createPlugin(WebFrame* frame,
return CreatePlugin(frame, info, params_to_use);
}
+WebPlugin* RenderViewImpl::createPluginReplacement(
+ WebFrame* frame,
+ const WebPluginParams& params) {
+ webkit::WebPluginInfo info;
+ std::string mime_type;
+ GetPluginInfo(params.url, frame->top()->document().url(),
+ params.mimeType.utf8(), &info, &mime_type);
+ return content::GetContentClient()->renderer()->CreatePluginReplacement(
+ this, info.path);
+}
+
WebSharedWorker* RenderViewImpl::createSharedWorker(
WebFrame* frame, const WebURL& url, const WebString& name,
unsigned long long document_id) {
@@ -3671,6 +3682,12 @@ webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate(
return new WebPluginDelegateProxy(mime_type, AsWeakPtr());
}
+WebKit::WebPlugin* RenderViewImpl::CreatePluginReplacement(
+ const FilePath& file_path) {
+ return content::GetContentClient()->renderer()->CreatePluginReplacement(
+ this, file_path);
+}
+
void RenderViewImpl::CreatedPluginWindow(gfx::PluginWindowHandle window) {
#if defined(USE_X11)
Send(new ViewHostMsg_CreatePluginContainer(routing_id(), window));