summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/npapi/webplugin_impl.cc
diff options
context:
space:
mode:
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 16:06:13 +0000
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 16:06:13 +0000
commit25971a1428977a489bcbed3140b26cbf56aefc7b (patch)
tree1796a776dd717bf9cd5eb97e3bbb22d13eebceb3 /webkit/plugins/npapi/webplugin_impl.cc
parentd1c2fa91d3e46c010217c728a828a31e6851228a (diff)
downloadchromium_src-25971a1428977a489bcbed3140b26cbf56aefc7b.zip
chromium_src-25971a1428977a489bcbed3140b26cbf56aefc7b.tar.gz
chromium_src-25971a1428977a489bcbed3140b26cbf56aefc7b.tar.bz2
Change call to WebFrame::createAssociatedURLLoader to use overload that takes WebURLLoaderOptions, in preparation for WebKit change that removes parameterless overload.
Review URL: http://codereview.chromium.org/7519013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/webplugin_impl.cc')
-rw-r--r--webkit/plugins/npapi/webplugin_impl.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/webplugin_impl.cc b/webkit/plugins/npapi/webplugin_impl.cc
index 86330ff..01bc20e 100644
--- a/webkit/plugins/npapi/webplugin_impl.cc
+++ b/webkit/plugins/npapi/webplugin_impl.cc
@@ -35,6 +35,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderOptions.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/gfx/rect.h"
@@ -67,6 +68,7 @@ using WebKit::WebURL;
using WebKit::WebURLError;
using WebKit::WebURLLoader;
using WebKit::WebURLLoaderClient;
+using WebKit::WebURLLoaderOptions;
using WebKit::WebURLRequest;
using WebKit::WebURLResponse;
using WebKit::WebVector;
@@ -1249,7 +1251,11 @@ bool WebPluginImpl::InitiateHTTPRequest(unsigned long resource_id,
SetReferrer(&info.request, referrer_flag);
- info.loader.reset(webframe_->createAssociatedURLLoader());
+ WebURLLoaderOptions options;
+ options.allowCredentials = true;
+ options.crossOriginRequestPolicy =
+ WebURLLoaderOptions::CrossOriginRequestPolicyAllow;
+ info.loader.reset(webframe_->createAssociatedURLLoader(options));
if (!info.loader.get())
return false;
info.loader->loadAsynchronously(info.request, this);