summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:48:01 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:48:01 +0000
commit0a5fb17a569ccc83ecc1d340af9c90279e9e9817 (patch)
tree755b8a71d993df366e9c003335aa8435ae772172 /webkit/plugins
parent79558c2a026dd800a15d1dd0743a8d9a7e042601 (diff)
downloadchromium_src-0a5fb17a569ccc83ecc1d340af9c90279e9e9817.zip
chromium_src-0a5fb17a569ccc83ecc1d340af9c90279e9e9817.tar.gz
chromium_src-0a5fb17a569ccc83ecc1d340af9c90279e9e9817.tar.bz2
Reland r69146
Use WebFrame::createAssociatedURLLoader. See https://bugs.webkit.org/show_bug.cgi?id=49764 for the WebKit side of this change. R=michaeln BUG=none TEST=none Originally reviewed at: http://codereview.chromium.org/5139005 Review URL: http://codereview.chromium.org/5920003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r--webkit/plugins/npapi/webplugin_impl.cc11
-rw-r--r--webkit/plugins/ppapi/ppb_url_loader_impl.cc10
2 files changed, 2 insertions, 19 deletions
diff --git a/webkit/plugins/npapi/webplugin_impl.cc b/webkit/plugins/npapi/webplugin_impl.cc
index 97c2f28..8ed2336 100644
--- a/webkit/plugins/npapi/webplugin_impl.cc
+++ b/webkit/plugins/npapi/webplugin_impl.cc
@@ -1178,22 +1178,13 @@ bool WebPluginImpl::InitiateHTTPRequest(unsigned long resource_id,
SetReferrer(&info.request, referrer_flag);
- // Sets the routing id to associate the ResourceRequest with the RenderView.
- webframe_->dispatchWillSendRequest(info.request);
-
- // Sets the appcache host id to allow retrieval from the appcache.
- if (WebApplicationCacheHostImpl* appcache_host =
- WebApplicationCacheHostImpl::FromFrame(webframe_)) {
- appcache_host->willStartSubResourceRequest(info.request);
- }
-
if (WebDevToolsAgent* devtools_agent = GetDevToolsAgent()) {
devtools_agent->identifierForInitialRequest(resource_id, webframe_,
info.request);
devtools_agent->willSendRequest(resource_id, info.request);
}
- info.loader.reset(WebKit::webKitClient()->createURLLoader());
+ info.loader.reset(webframe_->createAssociatedURLLoader());
if (!info.loader.get())
return false;
info.loader->loadAsynchronously(info.request, this);
diff --git a/webkit/plugins/ppapi/ppb_url_loader_impl.cc b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
index d667ca4..27b7af6 100644
--- a/webkit/plugins/ppapi/ppb_url_loader_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
@@ -249,15 +249,7 @@ int32_t PPB_URLLoader_Impl::Open(PPB_URLRequestInfo_Impl* request,
if (rv != PP_OK)
return rv;
- frame->dispatchWillSendRequest(web_request);
-
- // Sets the appcache host id to allow retrieval from the appcache.
- if (WebApplicationCacheHostImpl* appcache_host =
- WebApplicationCacheHostImpl::FromFrame(frame)) {
- appcache_host->willStartSubResourceRequest(web_request);
- }
-
- loader_.reset(WebKit::webKitClient()->createURLLoader());
+ loader_.reset(frame->createAssociatedURLLoader());
if (!loader_.get())
return PP_ERROR_FAILED;