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

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: redesign 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..d83c676b829ddf32ee63850dd102ab710eacd405 100644
--- a/ppapi/c/ppb_url_request_info.h
+++ b/ppapi/c/ppb_url_request_info.h
@@ -41,14 +41,28 @@ typedef enum {
// URLLoader.GetUploadProgress function.
//
// Boolean (default = PP_FALSE).
- PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS
+ PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS,
+
+ // Set to true to set a custom referrer. The resulting URLRequestInfo object
+ // will likely only be usable with a loader which has universal access (only
+ // available on trusted implementations).
+ //
+ // Boolean (default = PP_FALSE).
+ PP_URLREQUESTPROPERTY_USECUSTOMREFERRER,
brettw 2011/03/11 20:34:44 Why do you need this flag? Can't you just key off
+
+ // The URL to use in the referrer header. This is only used if
+ // PP_URLREQUESTPROPERTY_USECUSTOMREFERRER is true. If it is empty, then the
+ // referrer header will be omitted.
+ //
+ // String (default = empty)
+ PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL
} PP_URLRequestProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
/**
* @}
*/
-#define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.2"
+#define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.3"
/**
*
« 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