OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* From ppb_url_request_info.idl modified Mon Nov 14 10:36:01 2011. */ | 6 /* From ppb_url_request_info.idl modified Mon Jul 9 17:37:37 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 * not defined and is set by the browser to a value appropriate for the | 138 * not defined and is set by the browser to a value appropriate for the |
139 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. | 139 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. |
140 * Set it to an integer to set a lower threshold for the prefetched buffer | 140 * Set it to an integer to set a lower threshold for the prefetched buffer |
141 * of an asynchronous load. When reached, the browser will resume loading if | 141 * of an asynchronous load. When reached, the browser will resume loading if |
142 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had | 142 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had |
143 * previously been reached. | 143 * previously been reached. |
144 * When setting this property, | 144 * When setting this property, |
145 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also | 145 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also |
146 * be set. Behavior is undefined if the former is >= the latter. | 146 * be set. Behavior is undefined if the former is >= the latter. |
147 */ | 147 */ |
148 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12 | 148 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12, |
| 149 /** |
| 150 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be |
| 151 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). |
| 152 * Set it to a string to set a custom user-agent header (if empty, that header |
| 153 * will be omitted), or to undefined to use the default |
| 154 * (if any). Only loaders with universal access (only available on trusted |
| 155 * implementations) will accept <code>URLRequestInfo</code> objects that try |
| 156 * to set a custom content transfer encoding; if given to a loader without |
| 157 * universal access, <code>PP_ERROR_NOACCESS</code> will result. |
| 158 */ |
| 159 PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13 |
149 } PP_URLRequestProperty; | 160 } PP_URLRequestProperty; |
150 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); | 161 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); |
151 /** | 162 /** |
152 * @} | 163 * @} |
153 */ | 164 */ |
154 | 165 |
155 /** | 166 /** |
156 * @addtogroup Interfaces | 167 * @addtogroup Interfaces |
157 * @{ | 168 * @{ |
158 */ | 169 */ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 PP_Time expected_last_modified_time); | 259 PP_Time expected_last_modified_time); |
249 }; | 260 }; |
250 | 261 |
251 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; | 262 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; |
252 /** | 263 /** |
253 * @} | 264 * @} |
254 */ | 265 */ |
255 | 266 |
256 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 267 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
257 | 268 |
OLD | NEW |