| 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 /** | 6 /** |
| 7 * This file defines the <strong>PPB_URLLoader</strong> interface for loading | 7 * This file defines the <strong>PPB_URLLoader</strong> interface for loading |
| 8 * URLs. | 8 * URLs. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 * - Then, access the downloaded file using the GetBodyAsFileRef() function of | 31 * - Then, access the downloaded file using the GetBodyAsFileRef() function of |
| 32 * the <code>URLResponseInfo</code> returned in step #4. | 32 * the <code>URLResponseInfo</code> returned in step #4. |
| 33 */ | 33 */ |
| 34 interface PPB_URLLoader { | 34 interface PPB_URLLoader { |
| 35 /** | 35 /** |
| 36 * Create() creates a new <code>URLLoader</code> object. The | 36 * Create() creates a new <code>URLLoader</code> object. The |
| 37 * <code>URLLoader</code> is associated with a particular instance, so that | 37 * <code>URLLoader</code> is associated with a particular instance, so that |
| 38 * any UI dialogs that need to be shown to the user can be positioned | 38 * any UI dialogs that need to be shown to the user can be positioned |
| 39 * relative to the window containing the instance. | 39 * relative to the window containing the instance. |
| 40 * | 40 * |
| 41 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | 41 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 42 * of a module. | 42 * of a module. |
| 43 * | 43 * |
| 44 * @return A <code>PP_Resource</code> corresponding to a URLLoader if | 44 * @return A <code>PP_Resource</code> corresponding to a URLLoader if |
| 45 * successful, 0 if the instance is invalid. | 45 * successful, 0 if the instance is invalid. |
| 46 */ | 46 */ |
| 47 PP_Resource Create( | 47 PP_Resource Create( |
| 48 [in] PP_Instance instance); | 48 [in] PP_Instance instance); |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. | 51 * IsURLLoader() determines if a resource is an <code>URLLoader</code>. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 * while it is still open, then it will be implicitly closed so you are not | 212 * while it is still open, then it will be implicitly closed so you are not |
| 213 * required to call Close(). | 213 * required to call Close(). |
| 214 * | 214 * |
| 215 * @param[in] loader A <code>PP_Resource</code> corresponding to a | 215 * @param[in] loader A <code>PP_Resource</code> corresponding to a |
| 216 * <code>URLLoader</code>. | 216 * <code>URLLoader</code>. |
| 217 */ | 217 */ |
| 218 void Close( | 218 void Close( |
| 219 [in] PP_Resource loader); | 219 [in] PP_Resource loader); |
| 220 }; | 220 }; |
| 221 | 221 |
| OLD | NEW |