Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: webkit/plugins/ppapi/ppb_url_request_info_impl.h

Issue 6652014: Pepper: Add a property to URLRequestInfo to skip header validation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes per brettw Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_loader_impl.cc ('k') | webkit/plugins/ppapi/ppb_url_request_info_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_url_request_info_impl.h
diff --git a/webkit/plugins/ppapi/ppb_url_request_info_impl.h b/webkit/plugins/ppapi/ppb_url_request_info_impl.h
index 64c27fe774b12f4e627b37e7278518fbde450ad8..f57e5c256a174aa4270fb8d145b52e0190f34940 100644
--- a/webkit/plugins/ppapi/ppb_url_request_info_impl.h
+++ b/webkit/plugins/ppapi/ppb_url_request_info_impl.h
@@ -35,6 +35,7 @@ class PPB_URLRequestInfo_Impl : public Resource {
virtual PPB_URLRequestInfo_Impl* AsPPB_URLRequestInfo_Impl();
// PPB_URLRequestInfo implementation.
+ bool SetUndefinedProperty(PP_URLRequestProperty property);
bool SetBooleanProperty(PP_URLRequestProperty property, bool value);
bool SetStringProperty(PP_URLRequestProperty property,
const std::string& value);
@@ -46,6 +47,9 @@ class PPB_URLRequestInfo_Impl : public Resource {
WebKit::WebURLRequest ToWebURLRequest(WebKit::WebFrame* frame) const;
+ // Whether universal access is required to use this request.
+ bool RequiresUniversalAccess() const;
+
bool follow_redirects() { return follow_redirects_; }
bool record_download_progress() const { return record_download_progress_; }
@@ -65,6 +69,13 @@ class PPB_URLRequestInfo_Impl : public Resource {
bool record_download_progress_;
bool record_upload_progress_;
+ // |has_custom_referrer_url_| is set to false if a custom referrer hasn't been
+ // set (or has been set to an Undefined Var) and the default referrer should
+ // be used. (Setting the custom referrer to an empty string indicates that no
+ // referrer header should be generated.)
+ bool has_custom_referrer_url_;
+ std::string custom_referrer_url_;
+
DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl);
};
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_loader_impl.cc ('k') | webkit/plugins/ppapi/ppb_url_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698