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

Unified Diff: ppapi/c/ppb_url_request_info.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 | « no previous file | ppapi/cpp/url_request_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_url_request_info.h
diff --git a/ppapi/c/ppb_url_request_info.h b/ppapi/c/ppb_url_request_info.h
index 1369c314031febe99d63cd61cf1f1e2f5153f61e..441a02ca3622b0b037d5d87034f54cf99e38bd17 100644
--- a/ppapi/c/ppb_url_request_info.h
+++ b/ppapi/c/ppb_url_request_info.h
@@ -41,7 +41,17 @@ typedef enum {
// URLLoader.GetUploadProgress function.
//
// Boolean (default = PP_FALSE).
- PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS
+ PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS,
+
+ // Set to a String to set a custom referrer (if empty, the referrer header
+ // will be omitted), or to an Undefined Var to use the default referrer. Only
+ // loaders with universal access (only available on trusted implementations)
+ // will accept URLRequestInfo objects which try to set a custom referrer; if
+ // given to a loader without universal access, PP_ERROR_BADARGUMENT will
+ // result.
+ //
+ // Undefined/String (default = Undefined)
+ PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL
} PP_URLRequestProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
/**
« no previous file with comments | « no previous file | ppapi/cpp/url_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698