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

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: sync 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 222566)
+++ 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,19 @@
webplugin_->OnResourceCreated(resource_id, resource_client);
}
+void WebPluginDelegateStub::OnFetchURL(
+ const PluginMsg_FetchURL_Params& params) {
+ delegate_->FetchURL(params.resource_id,
+ params.notify_id,
+ params.url,
+ params.first_party_for_cookies,
+ params.method,
+ params.post_data,
+ params.referrer,
+ params.notify_redirect,
+ params.is_plugin_src_load,
+ channel_->renderer_id(),
+ params.render_view_id);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698