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 Wed Aug 24 20:48:35 2011. */ | 6 /* From ppb_url_loader.idl modified Mon Aug 29 10:11:34 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 * - Then, access the downloaded file using the GetBodyAsFileRef() function of | 48 * - Then, access the downloaded file using the GetBodyAsFileRef() function of |
49 * the <code>URLResponseInfo</code> returned in step #4. | 49 * the <code>URLResponseInfo</code> returned in step #4. |
50 */ | 50 */ |
51 struct PPB_URLLoader { | 51 struct PPB_URLLoader { |
52 /** | 52 /** |
53 * Create() creates a new <code>URLLoader</code> object. The | 53 * Create() creates a new <code>URLLoader</code> object. The |
54 * <code>URLLoader</code> is associated with a particular instance, so that | 54 * <code>URLLoader</code> is associated with a particular instance, so that |
55 * any UI dialogs that need to be shown to the user can be positioned | 55 * any UI dialogs that need to be shown to the user can be positioned |
56 * relative to the window containing the instance. | 56 * relative to the window containing the instance. |
57 * | 57 * |
58 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | 58 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
59 * of a module. | 59 * of a module. |
60 * | 60 * |
61 * @return A <code>PP_Resource</code> corresponding to a URLLoader if | 61 * @return A <code>PP_Resource</code> corresponding to a URLLoader if |
62 * successful, 0 if the instance is invalid. | 62 * successful, 0 if the instance is invalid. |
63 */ | 63 */ |
64 PP_Resource (*Create)(PP_Instance instance); | 64 PP_Resource (*Create)(PP_Instance instance); |
65 /** | 65 /** |
66 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. | 66 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. |
67 * | 67 * |
68 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 68 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 * <code>URLLoader</code>. | 215 * <code>URLLoader</code>. |
216 */ | 216 */ |
217 void (*Close)(PP_Resource loader); | 217 void (*Close)(PP_Resource loader); |
218 }; | 218 }; |
219 /** | 219 /** |
220 * @} | 220 * @} |
221 */ | 221 */ |
222 | 222 |
223 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ | 223 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ |
224 | 224 |
OLD | NEW |