OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 * Open() begins loading the <code>URLRequestInfo</code>. The operation | 64 * Open() begins loading the <code>URLRequestInfo</code>. The operation |
65 * completes when response headers are received or when an error occurs. Use | 65 * completes when response headers are received or when an error occurs. Use |
66 * GetResponseInfo() to access the response headers. | 66 * GetResponseInfo() to access the response headers. |
67 * | 67 * |
68 * @param[in] loader A <code>PP_Resource</code> corresponding to a | 68 * @param[in] loader A <code>PP_Resource</code> corresponding to a |
69 * <code>URLLoader</code>. | 69 * <code>URLLoader</code>. |
70 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 70 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
71 * <code>URLRequestInfo</code>. | 71 * <code>URLRequestInfo</code>. |
72 * @param[in] callback A <code>PP_CompletionCallback</code> to run on | 72 * @param[in] callback A <code>PP_CompletionCallback</code> to run on |
73 * asynchronous completion of Open(). This callback will run when response | 73 * asynchronous completion of Open(). This callback will run when response |
74 * headers for the url are received or error occured. This callback | 74 * headers for the url are received or error occurred. This callback |
75 * will only run if Open() returns <code>PP_OK_COMPLETIONPENDING</code>. | 75 * will only run if Open() returns <code>PP_OK_COMPLETIONPENDING</code>. |
76 * | 76 * |
77 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 77 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
78 */ | 78 */ |
79 int32_t Open( | 79 int32_t Open( |
80 [in] PP_Resource loader, | 80 [in] PP_Resource loader, |
81 [in] PP_Resource request_info, | 81 [in] PP_Resource request_info, |
82 [in] PP_CompletionCallback callback); | 82 [in] PP_CompletionCallback callback); |
83 | 83 |
84 /** | 84 /** |
(...skipping 127 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 |