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 |