summaryrefslogtreecommitdiffstats
path: root/content/renderer/npapi
diff options
context:
space:
mode:
authormkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 08:34:45 +0000
committermkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 08:34:45 +0000
commita9987cae11bccd09827d0b3cb91bd4f70091d59d (patch)
tree9dca961bcb3877b2eaa18bb0706d4e7114ce35c5 /content/renderer/npapi
parentadb9ded6176facf1d79506844b6877a9dbfaa0ee (diff)
downloadchromium_src-a9987cae11bccd09827d0b3cb91bd4f70091d59d.zip
chromium_src-a9987cae11bccd09827d0b3cb91bd4f70091d59d.tar.gz
chromium_src-a9987cae11bccd09827d0b3cb91bd4f70091d59d.tar.bz2
Drop 'WebURLRequest::setTargetType' from various content/renderer files.
'WebURLRequest::TargetType' has been dropped in Blink in favor of 'RequestContext' and 'FrameType', matching the Fetch specification's changes, and allowing both more granularity in various Blink-side checks and more clarity around the thing that caused a request, and the frame that the request affects. This CL should have zero practical effect, as it's simply hoisting the translation work that 'WebURLRequest::setTargetType' is already doing up into the content layer to bring us one step closer to removing the concept entirely. BUG=390497 Review URL: https://codereview.chromium.org/392333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/npapi')
-rw-r--r--content/renderer/npapi/webplugin_impl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc
index 8aca907..c3e5113 100644
--- a/content/renderer/npapi/webplugin_impl.cc
+++ b/content/renderer/npapi/webplugin_impl.cc
@@ -1283,7 +1283,10 @@ bool WebPluginImpl::InitiateHTTPRequest(unsigned long resource_id,
info.request.setFirstPartyForCookies(
webframe_->document().firstPartyForCookies());
info.request.setRequestorProcessID(delegate_->GetProcessId());
- info.request.setTargetType(WebURLRequest::TargetIsObject);
+ // TODO(mkwst): Is this a request for a plugin object itself
+ // (RequestContextObject), or a request that the plugin makes
+ // (RequestContextPlugin)?
+ info.request.setRequestContext(WebURLRequest::RequestContextPlugin);
info.request.setHTTPMethod(WebString::fromUTF8(method));
info.pending_failure_notification = false;
info.notify_redirects = notify_redirects;