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 /** | 6 /** |
7 * This file defines the <code>PPB_URLRequestInfo</code> API for creating and | 7 * This file defines the <code>PPB_URLRequestInfo</code> API for creating and |
8 * manipulating URL requests. | 8 * manipulating URL requests. |
9 */ | 9 */ |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 * not defined and is set by the browser to a value appropriate for the | 133 * not defined and is set by the browser to a value appropriate for the |
134 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. | 134 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. |
135 * Set it to an integer to set a lower threshold for the prefetched buffer | 135 * Set it to an integer to set a lower threshold for the prefetched buffer |
136 * of an asynchronous load. When reached, the browser will resume loading if | 136 * of an asynchronous load. When reached, the browser will resume loading if |
137 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had | 137 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had |
138 * previously been reached. | 138 * previously been reached. |
139 * When setting this property, | 139 * When setting this property, |
140 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also | 140 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also |
141 * be set. Behavior is undefined if the former is >= the latter. | 141 * be set. Behavior is undefined if the former is >= the latter. |
142 */ | 142 */ |
143 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12 | 143 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12, |
144 | |
145 /** | |
146 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be | |
147 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). | |
148 * Set it to a string to set a custom user-agent header (if empty, that header | |
149 * will be omitted), or to undefined to use the default | |
150 * (if any). Only loaders with universal access (only available on trusted | |
151 * implementations) will accept <code>URLRequestInfo</code> objects that try | |
152 * to set a custom content transfer encoding; if given to a loader without | |
brettw
2012/07/10 04:54:45
transfer encoding -> user agent
| |
153 * universal access, <code>PP_ERROR_NOACCESS</code> will result. | |
154 */ | |
155 PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13 | |
144 }; | 156 }; |
145 | 157 |
146 /** | 158 /** |
147 * The <code>PPB_URLRequestInfo</code> interface is used to create | 159 * The <code>PPB_URLRequestInfo</code> interface is used to create |
148 * and handle URL requests. This API is used in conjunction with | 160 * and handle URL requests. This API is used in conjunction with |
149 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further | 161 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further |
150 * information. | 162 * information. |
151 */ | 163 */ |
152 interface PPB_URLRequestInfo { | 164 interface PPB_URLRequestInfo { |
153 /** | 165 /** |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 * of the parameters are invalid. | 249 * of the parameters are invalid. |
238 */ | 250 */ |
239 PP_Bool AppendFileToBody( | 251 PP_Bool AppendFileToBody( |
240 [in] PP_Resource request, | 252 [in] PP_Resource request, |
241 [in] PP_Resource file_ref, | 253 [in] PP_Resource file_ref, |
242 [in] int64_t start_offset, | 254 [in] int64_t start_offset, |
243 [in] int64_t number_of_bytes, | 255 [in] int64_t number_of_bytes, |
244 [in] PP_Time expected_last_modified_time); | 256 [in] PP_Time expected_last_modified_time); |
245 }; | 257 }; |
246 | 258 |
OLD | NEW |