| 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 15 matching lines...) Expand all Loading... |
| 26 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html">HTTP | 26 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html">HTTP |
| 27 * Methods</a> documentation for further information. | 27 * Methods</a> documentation for further information. |
| 28 * | 28 * |
| 29 */ | 29 */ |
| 30 PP_URLREQUESTPROPERTY_METHOD = 1, | 30 PP_URLREQUESTPROPERTY_METHOD = 1, |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n | 33 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n |
| 34 * delimited. Refer to the | 34 * delimited. Refer to the |
| 35 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header | 35 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header |
| 36 * Field Definitions</a> documentaiton for further information. | 36 * Field Definitions</a> documentation for further information. |
| 37 */ | 37 */ |
| 38 PP_URLREQUESTPROPERTY_HEADERS = 2, | 38 PP_URLREQUESTPROPERTY_HEADERS = 2, |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; | 41 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; |
| 42 * default=<code>PP_FALSE</code>). | 42 * default=<code>PP_FALSE</code>). |
| 43 * Set this value to <code>PP_TRUE</code> if you want to download the data | 43 * Set this value to <code>PP_TRUE</code> if you want to download the data |
| 44 * to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the | 44 * to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the |
| 45 * download. | 45 * download. |
| 46 */ | 46 */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 * default=<code>PP_FALSE</code>). | 60 * default=<code>PP_FALSE</code>). |
| 61 * Set this value to <code>PP_TRUE</code> if you want to be able to poll the | 61 * Set this value to <code>PP_TRUE</code> if you want to be able to poll the |
| 62 * download progress using PPB_URLLoader.GetDownloadProgress(). | 62 * download progress using PPB_URLLoader.GetDownloadProgress(). |
| 63 */ | 63 */ |
| 64 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, | 64 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * This corresponds to a <code>PP_Bool</code> | 67 * This corresponds to a <code>PP_Bool</code> |
| 68 * (default=<code>PP_FALSE</code>). Set this value to <code>PP_TRUE</code> if | 68 * (default=<code>PP_FALSE</code>). Set this value to <code>PP_TRUE</code> if |
| 69 * you want to be able to poll the upload progress using | 69 * you want to be able to poll the upload progress using |
| 70 * PPB_URLLoader.GetUplaodProgress(). | 70 * PPB_URLLoader.GetUploadProgress(). |
| 71 */ | 71 */ |
| 72 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, | 72 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be | 75 * This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be |
| 76 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). | 76 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). |
| 77 * Set it to a string to set a custom referrer (if empty, the referrer header | 77 * Set it to a string to set a custom referrer (if empty, the referrer header |
| 78 * will be omitted), or to undefined to use the default referrer. Only loaders | 78 * will be omitted), or to undefined to use the default referrer. Only loaders |
| 79 * with universal access (only available on trusted implementations) will | 79 * with universal access (only available on trusted implementations) will |
| 80 * accept <code>URLRequestInfo</code> objects that try to set a custom | 80 * accept <code>URLRequestInfo</code> objects that try to set a custom |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 * of the parameters are invalid. | 249 * of the parameters are invalid. |
| 250 */ | 250 */ |
| 251 PP_Bool AppendFileToBody( | 251 PP_Bool AppendFileToBody( |
| 252 [in] PP_Resource request, | 252 [in] PP_Resource request, |
| 253 [in] PP_Resource file_ref, | 253 [in] PP_Resource file_ref, |
| 254 [in] int64_t start_offset, | 254 [in] int64_t start_offset, |
| 255 [in] int64_t number_of_bytes, | 255 [in] int64_t number_of_bytes, |
| 256 [in] PP_Time expected_last_modified_time); | 256 [in] PP_Time expected_last_modified_time); |
| 257 }; | 257 }; |
| 258 | 258 |
| OLD | NEW |