summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 17:19:49 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 17:19:49 +0000
commit5349184cc75f3f1f9ec72605665a7a9ec00f81d9 (patch)
treec70b98afd64c7d5b92ac99a431a0150a36598c06 /ppapi/cpp
parentd870150e16f9791c235ee64d00c4549c23ab29a5 (diff)
downloadchromium_src-5349184cc75f3f1f9ec72605665a7a9ec00f81d9.zip
chromium_src-5349184cc75f3f1f9ec72605665a7a9ec00f81d9.tar.gz
chromium_src-5349184cc75f3f1f9ec72605665a7a9ec00f81d9.tar.bz2
Pepper: Add a property to URLRequestInfo to skip header validation.
The resulting URLRequestInfo is then only usable with a (trusted) URLLoader which has universal access. BUG=75350 TEST=none Review URL: http://codereview.chromium.org/6652014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/url_request_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/cpp/url_request_info.h b/ppapi/cpp/url_request_info.h
index 3c7c47d..c1cda4e 100644
--- a/ppapi/cpp/url_request_info.h
+++ b/ppapi/cpp/url_request_info.h
@@ -51,6 +51,10 @@ class URLRequestInfo : public Resource {
bool SetRecordUploadProgress(bool enable) {
return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable);
}
+ // To use the default referrer, set url_string to an Undefined Var.
+ bool SetCustomReferrerURL(const Var& url_string) {
+ return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url_string);
+ }
};
} // namespace pp