summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 20:11:44 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 20:11:44 +0000
commit37ac29a12e504069b1f000cd28f7b59ae6eebfa2 (patch)
tree9d096cf5db0bd4a68d8ec4c1a279bbd1e8b974e4 /ppapi/c
parent0fe10c8aaf11a7cc7a66b2afc109b5d28bf3c4cf (diff)
downloadchromium_src-37ac29a12e504069b1f000cd28f7b59ae6eebfa2.zip
chromium_src-37ac29a12e504069b1f000cd28f7b59ae6eebfa2.tar.gz
chromium_src-37ac29a12e504069b1f000cd28f7b59ae6eebfa2.tar.bz2
Pepper: Enable custom content-transfer-encoding header to be set in URL requests.
Such URL requests can be made by a trusted loader. BUG=none TEST=manual Review URL: http://codereview.chromium.org/6882125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/ppb_url_request_info.h56
1 files changed, 36 insertions, 20 deletions
diff --git a/ppapi/c/ppb_url_request_info.h b/ppapi/c/ppb_url_request_info.h
index 6c6e516..260612b 100644
--- a/ppapi/c/ppb_url_request_info.h
+++ b/ppapi/c/ppb_url_request_info.h
@@ -78,30 +78,46 @@ typedef enum {
*/
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)
+ /**
+ * This corresponds to a string (PP_VARTYPE_STRING) or may be undefined
+ * (PP_VARTYPE_UNDEFINED; default).
+ * Set it to a string to set a custom referrer (if empty, the referrer header
+ * will be omitted), or to undefined to use the default referrer. Only loaders
+ * with universal access (only available on trusted implementations) will
+ * accept URLRequestInfo objects that try to set a custom referrer; if given
+ * to a loader without universal access, PP_ERROR_BADARGUMENT will result.
+ */
PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL,
- // Whether cross-origin requests are allowed. Cross-origin requests are made
- // using the CORS (Cross-Origin Resource Sharing) algorithm to check whether
- // the request should be allowed. For the complete CORS algorithm, see:
- // http://www.w3.org/TR/access-control
- //
- // Boolean (default = PP_FALSE).
+ /**
+ * This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE).
+ * Whether cross-origin requests are allowed. Cross-origin requests are made
+ * using the CORS (Cross-Origin Resource Sharing) algorithm to check whether
+ * the request should be allowed. For the complete CORS algorithm, refer to
+ * the <a href="http://www.w3.org/TR/access-control">Cross-Origin Resource
+ * Sharing</a> documentation.
+ */
PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS,
- // Whether HTTP credentials are sent with cross-origin requests. If false,
- // no credentials are sent with the request and cookies are ignored in the
- // response. If the request is not cross-origin, this property is ignored.
- //
- // Boolean (default = PP_FALSE).
- PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS
+ /**
+ * This corresponds to a PP_Bool (PP_VARTYPE_BOOL; default=PP_FALSE).
+ * Whether HTTP credentials are sent with cross-origin requests. If false,
+ * no credentials are sent with the request and cookies are ignored in the
+ * response. If the request is not cross-origin, this property is ignored.
+ */
+ PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS,
+
+ /**
+ * This corresponds to a string (PP_VARTYPE_STRING) or may be undefined
+ * (PP_VARTYPE_UNDEFINED; default).
+ * Set it to a string to set a custom content-transfer-encoding header (if
+ * empty, that header will be omitted), or to undefined to use the default (if
+ * any). Only loaders with universal access (only available on trusted
+ * implementations) will accept URLRequestInfo objects that try to set a
+ * custom content transfer encoding; if given to a loader without universal
+ * access, PP_ERROR_BADARGUMENT will result.
+ */
+ PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING
} PP_URLRequestProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
/**