| 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 Wed Aug 24 20:53:17 2011. */ | 6 /* From ppb_url_response_info.idl modified Fri Nov 11 19:54:33 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 17 matching lines...) Expand all Loading... |
| 34 typedef enum { | 34 typedef enum { |
| 35 /** | 35 /** |
| 36 * This corresponds to a string (PP_VARTYPE_STRING); an absolute URL formed by | 36 * This corresponds to a string (PP_VARTYPE_STRING); an absolute URL formed by |
| 37 * resolving the relative request URL with the absolute document URL. Refer | 37 * resolving the relative request URL with the absolute document URL. Refer |
| 38 * to the | 38 * to the |
| 39 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2"> | 39 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2"> |
| 40 * HTTP Request URI</a> and | 40 * HTTP Request URI</a> and |
| 41 * <a href="http://www.w3.org/TR/html4/struct/links.html#h-12.4.1"> | 41 * <a href="http://www.w3.org/TR/html4/struct/links.html#h-12.4.1"> |
| 42 * HTML Resolving Relative URIs</a> documentation for further information. | 42 * HTML Resolving Relative URIs</a> documentation for further information. |
| 43 */ | 43 */ |
| 44 PP_URLRESPONSEPROPERTY_URL, | 44 PP_URLRESPONSEPROPERTY_URL = 0, |
| 45 /** | 45 /** |
| 46 * This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned | 46 * This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned |
| 47 * in the response header's 'Location' field if this is a redirect response, | 47 * in the response header's 'Location' field if this is a redirect response, |
| 48 * an empty string otherwise. Refer to the | 48 * an empty string otherwise. Refer to the |
| 49 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> | 49 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> |
| 50 * HTTP Status Codes - Redirection</a> documentation for further information. | 50 * HTTP Status Codes - Redirection</a> documentation for further information. |
| 51 */ | 51 */ |
| 52 PP_URLRESPONSEPROPERTY_REDIRECTURL, | 52 PP_URLRESPONSEPROPERTY_REDIRECTURL = 1, |
| 53 /** | 53 /** |
| 54 * This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be | 54 * This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be |
| 55 * used in a new request if this is a redirect response, an empty string | 55 * used in a new request if this is a redirect response, an empty string |
| 56 * otherwise. Refer to the | 56 * otherwise. Refer to the |
| 57 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> | 57 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> |
| 58 * HTTP Status Codes - Redirection</a> documentation for further information. | 58 * HTTP Status Codes - Redirection</a> documentation for further information. |
| 59 */ | 59 */ |
| 60 PP_URLRESPONSEPROPERTY_REDIRECTMETHOD, | 60 PP_URLRESPONSEPROPERTY_REDIRECTMETHOD = 2, |
| 61 /** | 61 /** |
| 62 * This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the | 62 * This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the |
| 63 * response, e.g., 200 if the request was successful. Refer to the | 63 * response, e.g., 200 if the request was successful. Refer to the |
| 64 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1"> | 64 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1"> |
| 65 * HTTP Status Code and Reason Phrase</a> documentation for further | 65 * HTTP Status Code and Reason Phrase</a> documentation for further |
| 66 * information. | 66 * information. |
| 67 */ | 67 */ |
| 68 PP_URLRESPONSEPROPERTY_STATUSCODE, | 68 PP_URLRESPONSEPROPERTY_STATUSCODE = 3, |
| 69 /** | 69 /** |
| 70 * This corresponds to a string (PP_VARTYPE_STRING); the status line | 70 * This corresponds to a string (PP_VARTYPE_STRING); the status line |
| 71 * from the response. Refer to the | 71 * from the response. Refer to the |
| 72 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1"> | 72 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1"> |
| 73 * HTTP Response Status Line</a> documentation for further information. | 73 * HTTP Response Status Line</a> documentation for further information. |
| 74 */ | 74 */ |
| 75 PP_URLRESPONSEPROPERTY_STATUSLINE, | 75 PP_URLRESPONSEPROPERTY_STATUSLINE = 4, |
| 76 /** | 76 /** |
| 77 * This corresponds to a string(PP_VARTYPE_STRING), a \n-delimited list of | 77 * This corresponds to a string(PP_VARTYPE_STRING), a \n-delimited list of |
| 78 * header field/value pairs of the form "field: value", returned by the | 78 * header field/value pairs of the form "field: value", returned by the |
| 79 * server. Refer to the | 79 * server. Refer to the |
| 80 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14"> | 80 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14"> |
| 81 * HTTP Header Field Definitions</a> documentation for further information. | 81 * HTTP Header Field Definitions</a> documentation for further information. |
| 82 */ | 82 */ |
| 83 PP_URLRESPONSEPROPERTY_HEADERS | 83 PP_URLRESPONSEPROPERTY_HEADERS = 5 |
| 84 } PP_URLResponseProperty; | 84 } PP_URLResponseProperty; |
| 85 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4); | 85 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4); |
| 86 /** | 86 /** |
| 87 * @} | 87 * @} |
| 88 */ | 88 */ |
| 89 | 89 |
| 90 /** | 90 /** |
| 91 * @addtogroup Interfaces | 91 * @addtogroup Interfaces |
| 92 * @{ | 92 * @{ |
| 93 */ | 93 */ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /** | 142 /** |
| 143 * @} | 143 * @} |
| 144 */ | 144 */ |
| 145 | 145 |
| 146 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ | 146 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ |
| 147 | 147 |
| OLD | NEW |