Chromium Code Reviews| 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 a String to set a custom referrer (if empty, the referrer header | |
| 47 // will be omitted), or to an Undefined Var to use the default referrer. Only | |
| 48 // loaders with universal access (only available on trusted implementations) | |
| 49 // will accept URLRequestInfo objects which try to set a custom referrer; if | |
| 50 // given to a loader without universal access, PP_ERROR_BADARGUMENT will | |
| 51 // result. | |
| 52 // | |
| 53 // Undefined/String (default = Undefined) | |
| 54 PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL | |
| 45 } PP_URLRequestProperty; | 55 } PP_URLRequestProperty; |
| 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); | 56 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); |
| 47 /** | 57 /** |
| 48 * @} | 58 * @} |
| 49 */ | 59 */ |
| 50 | 60 |
| 51 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.2" | 61 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.3" |
|
brettw
2011/03/11 23:31:05
I don't really want to break backwards compatibili
viettrungluu
2011/03/14 17:13:53
Done.
| |
| 52 | 62 |
| 53 /** | 63 /** |
| 54 * | 64 * |
| 55 * @addtogroup Interfaces | 65 * @addtogroup Interfaces |
| 56 * @{ | 66 * @{ |
| 57 */ | 67 */ |
| 58 struct PPB_URLRequestInfo { | 68 struct PPB_URLRequestInfo { |
| 59 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. | 69 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. |
| 60 PP_Resource (*Create)(PP_Instance instance); | 70 PP_Resource (*Create)(PP_Instance instance); |
| 61 | 71 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 int64_t start_offset, | 110 int64_t start_offset, |
| 101 int64_t number_of_bytes, | 111 int64_t number_of_bytes, |
| 102 PP_Time expected_last_modified_time); | 112 PP_Time expected_last_modified_time); |
| 103 }; | 113 }; |
| 104 /** | 114 /** |
| 105 * @} | 115 * @} |
| 106 */ | 116 */ |
| 107 | 117 |
| 108 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 118 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
| 109 | 119 |
| OLD | NEW |