| 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_response_info.idl modified Fri Nov 11 19:54:33 2011. */ | 6 /* From ppb_url_response_info.idl modified Mon Nov 14 10:36:01 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_ | 8 #ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_ |
| 9 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_ | 9 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
| 16 | 16 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 /** | 90 /** |
| 91 * @addtogroup Interfaces | 91 * @addtogroup Interfaces |
| 92 * @{ | 92 * @{ |
| 93 */ | 93 */ |
| 94 /** | 94 /** |
| 95 * The PPB_URLResponseInfo interface contains APIs for | 95 * The PPB_URLResponseInfo interface contains APIs for |
| 96 * examining URL responses. Refer to <code>PPB_URLLoader</code> for further | 96 * examining URL responses. Refer to <code>PPB_URLLoader</code> for further |
| 97 * information. | 97 * information. |
| 98 */ | 98 */ |
| 99 struct PPB_URLResponseInfo { | 99 struct PPB_URLResponseInfo_1_0 { |
| 100 /** | 100 /** |
| 101 * IsURLResponseInfo() determines if a response is a | 101 * IsURLResponseInfo() determines if a response is a |
| 102 * <code>URLResponseInfo</code>. | 102 * <code>URLResponseInfo</code>. |
| 103 * | 103 * |
| 104 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 104 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
| 105 * <code>URLResponseInfo</code>. | 105 * <code>URLResponseInfo</code>. |
| 106 * | 106 * |
| 107 * @return <code>PP_TRUE</code> if the resource is a | 107 * @return <code>PP_TRUE</code> if the resource is a |
| 108 * <code>URLResponseInfo</code>, <code>PP_FALSE</code> if the resource is | 108 * <code>URLResponseInfo</code>, <code>PP_FALSE</code> if the resource is |
| 109 * invalid or some type other than <code>URLResponseInfo</code>. | 109 * invalid or some type other than <code>URLResponseInfo</code>. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 132 * | 132 * |
| 133 * @param[in] request A <code>PP_Resource</code> corresponding to a | 133 * @param[in] request A <code>PP_Resource</code> corresponding to a |
| 134 * <code>URLResponseInfo</code>. | 134 * <code>URLResponseInfo</code>. |
| 135 * | 135 * |
| 136 * @return A <code>PP_Resource</code> corresponding to a <code>FileRef</code> | 136 * @return A <code>PP_Resource</code> corresponding to a <code>FileRef</code> |
| 137 * if successful, 0 if <code>PP_URLREQUESTPROPERTY_STREAMTOFILE</code> was | 137 * if successful, 0 if <code>PP_URLREQUESTPROPERTY_STREAMTOFILE</code> was |
| 138 * not requested or if the <code>URLLoader</code> has not been opened yet. | 138 * not requested or if the <code>URLLoader</code> has not been opened yet. |
| 139 */ | 139 */ |
| 140 PP_Resource (*GetBodyAsFileRef)(PP_Resource response); | 140 PP_Resource (*GetBodyAsFileRef)(PP_Resource response); |
| 141 }; | 141 }; |
| 142 |
| 143 typedef struct PPB_URLResponseInfo_1_0 PPB_URLResponseInfo; |
| 142 /** | 144 /** |
| 143 * @} | 145 * @} |
| 144 */ | 146 */ |
| 145 | 147 |
| 146 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ | 148 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ |
| 147 | 149 |
| OLD | NEW |