| 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_loader.idl modified Thu Aug 18 19:44:49 2011. */ | 6 /* From ppb_url_loader.idl modified Tue Aug 23 11:31:30 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_URL_LOADER_H_ | 8 #ifndef PPAPI_C_PPB_URL_LOADER_H_ |
| 9 #define PPAPI_C_PPB_URL_LOADER_H_ | 9 #define PPAPI_C_PPB_URL_LOADER_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 * - Then, access the downloaded file using the GetBodyAsFileRef() function of | 49 * - Then, access the downloaded file using the GetBodyAsFileRef() function of |
| 50 * the <code>URLResponseInfo</code> returned in step #4. | 50 * the <code>URLResponseInfo</code> returned in step #4. |
| 51 */ | 51 */ |
| 52 struct PPB_URLLoader { | 52 struct PPB_URLLoader { |
| 53 /** | 53 /** |
| 54 * Create() creates a new <code>URLLoader</code> object. The | 54 * Create() creates a new <code>URLLoader</code> object. The |
| 55 * <code>URLLoader</code> is associated with a particular instance, so that | 55 * <code>URLLoader</code> is associated with a particular instance, so that |
| 56 * any UI dialogs that need to be shown to the user can be positioned | 56 * any UI dialogs that need to be shown to the user can be positioned |
| 57 * relative to the window containing the instance. | 57 * relative to the window containing the instance. |
| 58 * | 58 * |
| 59 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | 59 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 60 * of a module. | 60 * of a module. |
| 61 * | 61 * |
| 62 * @return A <code>PP_Resource</code> corresponding to a URLLoader if | 62 * @return A <code>PP_Resource</code> corresponding to a URLLoader if |
| 63 * successful, 0 if the instance is invalid. | 63 * successful, 0 if the instance is invalid. |
| 64 */ | 64 */ |
| 65 PP_Resource (*Create)(PP_Instance instance); | 65 PP_Resource (*Create)(PP_Instance instance); |
| 66 /** | 66 /** |
| 67 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. | 67 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. |
| 68 * | 68 * |
| 69 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 69 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 * <code>URLLoader</code>. | 216 * <code>URLLoader</code>. |
| 217 */ | 217 */ |
| 218 void (*Close)(PP_Resource loader); | 218 void (*Close)(PP_Resource loader); |
| 219 }; | 219 }; |
| 220 /** | 220 /** |
| 221 * @} | 221 * @} |
| 222 */ | 222 */ |
| 223 | 223 |
| 224 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ | 224 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ |
| 225 | 225 |
| OLD | NEW |