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

Unified Diff: content/plugin/webplugin_delegate_stub.cc

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: plumb RenderView's routing IDs Created 7 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/plugin/webplugin_delegate_stub.cc
===================================================================
--- content/plugin/webplugin_delegate_stub.cc (revision 222265)
+++ content/plugin/webplugin_delegate_stub.cc (working copy)
@@ -146,6 +146,7 @@
OnHandleURLRequestReply)
IPC_MESSAGE_HANDLER(PluginMsg_HTTPRangeRequestReply,
OnHTTPRangeRequestReply)
+ IPC_MESSAGE_HANDLER(PluginMsg_FetchURL, OnFetchURL)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -181,7 +182,7 @@
instance_id_,
page_url_,
params.host_render_view_routing_id);
- delegate_ = WebPluginDelegateImpl::Create(path, mime_type_);
+ delegate_ = WebPluginDelegateImpl::Create(webplugin_, path, mime_type_);
if (delegate_) {
if (delegate_->GetQuirks() &
WebPluginDelegateImpl::PLUGIN_QUIRK_DIE_AFTER_UNLOAD) {
@@ -203,7 +204,6 @@
*result = delegate_->Initialize(params.url,
arg_names,
arg_values,
- webplugin_,
params.load_manually);
*transparent = delegate_->instance()->transparent();
}
@@ -423,4 +423,9 @@
webplugin_->OnResourceCreated(resource_id, resource_client);
}
+void WebPluginDelegateStub::OnFetchURL(
+ const PluginMsg_FetchURL_Params& params) {
+ webplugin_->FetchURL(params);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698