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

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: used undefined var to unset 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') | webkit/plugins/ppapi/ppb_url_loader_impl.cc » ('J')
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..78c61f5981a76df276d7436bb154d77eb37c18e9 100644
--- a/ppapi/c/ppb_url_request_info.h
+++ b/ppapi/c/ppb_url_request_info.h
@@ -41,14 +41,24 @@ 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);
/**
* @}
*/
-#define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.2"
+#define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.3"
brettw 2011/03/11 23:31:05 I don't really want to break backwards compatibili
viettrungluu 2011/03/14 17:13:53 Done.
/**
*
« no previous file with comments | « no previous file | ppapi/cpp/url_request_info.h » ('j') | webkit/plugins/ppapi/ppb_url_loader_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698