| 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 /* From ppb_url_loader.idl modified Wed Oct 5 14:06:02 2011. */ | 6 /* From ppb_url_loader.idl modified Thu Mar 28 10:07:37 2013. */ |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 * Open() begins loading the <code>URLRequestInfo</code>. The operation | 77 * Open() begins loading the <code>URLRequestInfo</code>. The operation |
| 78 * completes when response headers are received or when an error occurs. Use | 78 * completes when response headers are received or when an error occurs. Use |
| 79 * GetResponseInfo() to access the response headers. | 79 * GetResponseInfo() to access the response headers. |
| 80 * | 80 * |
| 81 * @param[in] loader A <code>PP_Resource</code> corresponding to a | 81 * @param[in] loader A <code>PP_Resource</code> corresponding to a |
| 82 * <code>URLLoader</code>. | 82 * <code>URLLoader</code>. |
| 83 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 83 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
| 84 * <code>URLRequestInfo</code>. | 84 * <code>URLRequestInfo</code>. |
| 85 * @param[in] callback A <code>PP_CompletionCallback</code> to run on | 85 * @param[in] callback A <code>PP_CompletionCallback</code> to run on |
| 86 * asynchronous completion of Open(). This callback will run when response | 86 * asynchronous completion of Open(). This callback will run when response |
| 87 * headers for the url are received or error occured. This callback | 87 * headers for the url are received or error occurred. This callback |
| 88 * will only run if Open() returns <code>PP_OK_COMPLETIONPENDING</code>. | 88 * will only run if Open() returns <code>PP_OK_COMPLETIONPENDING</code>. |
| 89 * | 89 * |
| 90 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 90 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 91 */ | 91 */ |
| 92 int32_t (*Open)(PP_Resource loader, | 92 int32_t (*Open)(PP_Resource loader, |
| 93 PP_Resource request_info, | 93 PP_Resource request_info, |
| 94 struct PP_CompletionCallback callback); | 94 struct PP_CompletionCallback callback); |
| 95 /** | 95 /** |
| 96 * FollowRedirect() can be invoked to follow a redirect after Open() | 96 * FollowRedirect() can be invoked to follow a redirect after Open() |
| 97 * completed on receiving redirect headers. | 97 * completed on receiving redirect headers. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void (*Close)(PP_Resource loader); | 217 void (*Close)(PP_Resource loader); |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 typedef struct PPB_URLLoader_1_0 PPB_URLLoader; | 220 typedef struct PPB_URLLoader_1_0 PPB_URLLoader; |
| 221 /** | 221 /** |
| 222 * @} | 222 * @} |
| 223 */ | 223 */ |
| 224 | 224 |
| 225 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ | 225 #endif /* PPAPI_C_PPB_URL_LOADER_H_ */ |
| 226 | 226 |
| OLD | NEW |