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 true to set a custom referrer. The resulting URLRequestInfo object | |
| 47 // will likely only be usable with a loader which has universal access (only | |
| 48 // available on trusted implementations). | |
| 49 // | |
| 50 // Boolean (default = PP_FALSE). | |
| 51 PP_URLREQUESTPROPERTY_USECUSTOMREFERRER, | |
|
brettw
2011/03/11 20:34:44
Why do you need this flag? Can't you just key off
| |
| 52 | |
| 53 // The URL to use in the referrer header. This is only used if | |
| 54 // PP_URLREQUESTPROPERTY_USECUSTOMREFERRER is true. If it is empty, then the | |
| 55 // referrer header will be omitted. | |
| 56 // | |
| 57 // String (default = empty) | |
| 58 PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL | |
| 45 } PP_URLRequestProperty; | 59 } PP_URLRequestProperty; |
| 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); | 60 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); |
| 47 /** | 61 /** |
| 48 * @} | 62 * @} |
| 49 */ | 63 */ |
| 50 | 64 |
| 51 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.2" | 65 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.3" |
| 52 | 66 |
| 53 /** | 67 /** |
| 54 * | 68 * |
| 55 * @addtogroup Interfaces | 69 * @addtogroup Interfaces |
| 56 * @{ | 70 * @{ |
| 57 */ | 71 */ |
| 58 struct PPB_URLRequestInfo { | 72 struct PPB_URLRequestInfo { |
| 59 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. | 73 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. |
| 60 PP_Resource (*Create)(PP_Instance instance); | 74 PP_Resource (*Create)(PP_Instance instance); |
| 61 | 75 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 int64_t start_offset, | 114 int64_t start_offset, |
| 101 int64_t number_of_bytes, | 115 int64_t number_of_bytes, |
| 102 PP_Time expected_last_modified_time); | 116 PP_Time expected_last_modified_time); |
| 103 }; | 117 }; |
| 104 /** | 118 /** |
| 105 * @} | 119 * @} |
| 106 */ | 120 */ |
| 107 | 121 |
| 108 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 122 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
| 109 | 123 |
| OLD | NEW |