| 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_macros.h" | 9 #include "ppapi/c/pp_macros.h" |
| 10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, | 28 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, |
| 29 | 29 |
| 30 // Set to true if you want to be able to pull the upload progress via the | 30 // Set to true if you want to be able to pull the upload progress via the |
| 31 // URLLoader.GetUploadProgress function. | 31 // URLLoader.GetUploadProgress function. |
| 32 // | 32 // |
| 33 // Boolean (default = PP_FALSE). | 33 // Boolean (default = PP_FALSE). |
| 34 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS | 34 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS |
| 35 } PP_URLRequestProperty; | 35 } PP_URLRequestProperty; |
| 36 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); | 36 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); |
| 37 | 37 |
| 38 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;1.1" | 38 #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.1" |
| 39 | 39 |
| 40 struct PPB_URLRequestInfo { | 40 struct PPB_URLRequestInfo { |
| 41 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. | 41 // Create a new URLRequestInfo object. Returns 0 if the module is invalid. |
| 42 PP_Resource (*Create)(PP_Module module); | 42 PP_Resource (*Create)(PP_Module module); |
| 43 | 43 |
| 44 // Returns PP_TRUE if the given resource is an URLRequestInfo. Returns | 44 // Returns PP_TRUE if the given resource is an URLRequestInfo. Returns |
| 45 // PP_FALSE if the resource is invalid or some type other than an | 45 // PP_FALSE if the resource is invalid or some type other than an |
| 46 // URLRequestInfo. | 46 // URLRequestInfo. |
| 47 PP_Bool (*IsURLRequestInfo)(PP_Resource resource); | 47 PP_Bool (*IsURLRequestInfo)(PP_Resource resource); |
| 48 | 48 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 79 // Returns PP_FALSE if any of the parameters are invalid, PP_TRUE on success. | 79 // Returns PP_FALSE if any of the parameters are invalid, PP_TRUE on success. |
| 80 PP_Bool (*AppendFileToBody)(PP_Resource request, | 80 PP_Bool (*AppendFileToBody)(PP_Resource request, |
| 81 PP_Resource file_ref, | 81 PP_Resource file_ref, |
| 82 int64_t start_offset, | 82 int64_t start_offset, |
| 83 int64_t number_of_bytes, | 83 int64_t number_of_bytes, |
| 84 PP_Time expected_last_modified_time); | 84 PP_Time expected_last_modified_time); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 87 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
| 88 | 88 |
| OLD | NEW |