summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 16:09:01 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 16:09:01 +0000
commitc094eaf5de58987d93810e88bd0e1b21b7bcce91 (patch)
tree346b7873e7330caafb164ba9aa9fd452944d23f9 /ppapi/api
parent7f80fbfe35dfb9aa9d4dba2bbd9e5c799d5fc678 (diff)
downloadchromium_src-c094eaf5de58987d93810e88bd0e1b21b7bcce91.zip
chromium_src-c094eaf5de58987d93810e88bd0e1b21b7bcce91.tar.gz
chromium_src-c094eaf5de58987d93810e88bd0e1b21b7bcce91.tar.bz2
PPAPI: Add an API for setting a custom user agent for URL requests.
This doesn't hook it up yet. Pepper Flash needs this for RTMPT. BUG=134615 TEST=not really (except for trivial URL request test) Review URL: https://chromiumcodereview.appspot.com/10762017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/ppb_url_request_info.idl14
1 files changed, 13 insertions, 1 deletions
diff --git a/ppapi/api/ppb_url_request_info.idl b/ppapi/api/ppb_url_request_info.idl
index c6baedf..06c9edd 100644
--- a/ppapi/api/ppb_url_request_info.idl
+++ b/ppapi/api/ppb_url_request_info.idl
@@ -140,7 +140,19 @@ enum PP_URLRequestProperty {
* <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also
* be set. Behavior is undefined if the former is >= the latter.
*/
- PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12
+ PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12,
+
+ /**
+ * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be
+ * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). Set it to a string
+ * to set a custom user-agent header (if empty, that header will be omitted),
+ * or to undefined to use the default. Only loaders with universal access
+ * (only available on trusted implementations) will accept
+ * <code>URLRequestInfo</code> objects that try to set a custom user agent; if
+ * given to a loader without universal access, <code>PP_ERROR_NOACCESS</code>
+ * will result.
+ */
+ PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13
};
/**