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