| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 /* From ppb_url_request_info.idl modified Fri Nov 11 19:53:07 2011. */ | 6 /* From ppb_url_request_info.idl modified Mon Nov 14 10:36:01 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
| 9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ | 9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 /** | 155 /** |
| 156 * @addtogroup Interfaces | 156 * @addtogroup Interfaces |
| 157 * @{ | 157 * @{ |
| 158 */ | 158 */ |
| 159 /** | 159 /** |
| 160 * The <code>PPB_URLRequestInfo</code> interface is used to create | 160 * The <code>PPB_URLRequestInfo</code> interface is used to create |
| 161 * and handle URL requests. This API is used in conjunction with | 161 * and handle URL requests. This API is used in conjunction with |
| 162 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further | 162 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further |
| 163 * information. | 163 * information. |
| 164 */ | 164 */ |
| 165 struct PPB_URLRequestInfo { | 165 struct PPB_URLRequestInfo_1_0 { |
| 166 /** | 166 /** |
| 167 * Create() creates a new <code>URLRequestInfo</code> object. | 167 * Create() creates a new <code>URLRequestInfo</code> object. |
| 168 * | 168 * |
| 169 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 169 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 170 * of a module. | 170 * of a module. |
| 171 * | 171 * |
| 172 * @return A <code>PP_Resource</code> identifying the | 172 * @return A <code>PP_Resource</code> identifying the |
| 173 * <code>URLRequestInfo</code> if successful, 0 if the instance is invalid. | 173 * <code>URLRequestInfo</code> if successful, 0 if the instance is invalid. |
| 174 */ | 174 */ |
| 175 PP_Resource (*Create)(PP_Instance instance); | 175 PP_Resource (*Create)(PP_Instance instance); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 * | 240 * |
| 241 * @return <code>PP_TRUE</code> if successful, <code>PP_FALSE</code> if any | 241 * @return <code>PP_TRUE</code> if successful, <code>PP_FALSE</code> if any |
| 242 * of the parameters are invalid. | 242 * of the parameters are invalid. |
| 243 */ | 243 */ |
| 244 PP_Bool (*AppendFileToBody)(PP_Resource request, | 244 PP_Bool (*AppendFileToBody)(PP_Resource request, |
| 245 PP_Resource file_ref, | 245 PP_Resource file_ref, |
| 246 int64_t start_offset, | 246 int64_t start_offset, |
| 247 int64_t number_of_bytes, | 247 int64_t number_of_bytes, |
| 248 PP_Time expected_last_modified_time); | 248 PP_Time expected_last_modified_time); |
| 249 }; | 249 }; |
| 250 |
| 251 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; |
| 250 /** | 252 /** |
| 251 * @} | 253 * @} |
| 252 */ | 254 */ |
| 253 | 255 |
| 254 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 256 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
| 255 | 257 |
| OLD | NEW |