| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 5 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
| 6 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 6 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Set to true if you want to be able to poll the download progress via the | 34 // Set to true if you want to be able to poll the download progress via the |
| 35 // URLLoader.GetDownloadProgress function. | 35 // URLLoader.GetDownloadProgress function. |
| 36 // | 36 // |
| 37 // Boolean (default = PP_FALSE). | 37 // Boolean (default = PP_FALSE). |
| 38 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, | 38 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, |
| 39 | 39 |
| 40 // Set to true if you want to be able to pull the upload progress via the | 40 // Set to true if you want to be able to pull the upload progress via the |
| 41 // URLLoader.GetUploadProgress function. | 41 // URLLoader.GetUploadProgress function. |
| 42 // | 42 // |
| 43 // Boolean (default = PP_FALSE). | 43 // Boolean (default = PP_FALSE). |
| 44 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS | 44 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, |
| 45 |
| 46 // Set to true to allow, e.g., arbitrary headers to be set. The |
| 47 // URLRequestInfo object will only be usable with a loader which has universal |
| 48 // access (only available on trusted implementations). |
| 49 // |
| 50 // Boolean (default = PP_FALSE). |
| 51 PP_URLREQUESTPROPERTY_UNIVERSALACCESS |
| 45 } PP_URLRequestProperty; | 52 } PP_URLRequestProperty; |
| 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); | 53 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); |
| 47 /** | 54 /** |
| 48 * @} | 55 * @} |
| 49 */ | 56 */ |
| 50 | 57 |
| 51 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.2" | 58 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.3" |
| 52 | 59 |
| 53 /** | 60 /** |
| 54 * | 61 * |
| 55 * @addtogroup Interfaces | 62 * @addtogroup Interfaces |
| 56 * @{ | 63 * @{ |
| 57 */ | 64 */ |
| 58 struct PPB_URLRequestInfo { | 65 struct PPB_URLRequestInfo { |
| 59 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. | 66 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. |
| 60 PP_Resource (*Create)(PP_Instance instance); | 67 PP_Resource (*Create)(PP_Instance instance); |
| 61 | 68 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 int64_t start_offset, | 107 int64_t start_offset, |
| 101 int64_t number_of_bytes, | 108 int64_t number_of_bytes, |
| 102 PP_Time expected_last_modified_time); | 109 PP_Time expected_last_modified_time); |
| 103 }; | 110 }; |
| 104 /** | 111 /** |
| 105 * @} | 112 * @} |
| 106 */ | 113 */ |
| 107 | 114 |
| 108 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 115 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
| 109 | 116 |
| OLD | NEW |