| 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 dev/ppb_url_util_dev.idl modified Wed Dec 7 17:25:52 2011. */ | 6 /* From dev/ppb_url_util_dev.idl modified Fri Dec 16 17:34:59 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 * @addtogroup Interfaces | 70 * @addtogroup Interfaces |
| 71 * @{ | 71 * @{ |
| 72 */ | 72 */ |
| 73 /* | 73 /* |
| 74 * URL encoding: URLs are supplied to this interface as NULL-terminated 8-bit | 74 * URL encoding: URLs are supplied to this interface as NULL-terminated 8-bit |
| 75 * strings. You can pass non-ASCII characters which will be interpreted as | 75 * strings. You can pass non-ASCII characters which will be interpreted as |
| 76 * UTF-8. Canonicalized URL strings returned by these functions will be ASCII | 76 * UTF-8. Canonicalized URL strings returned by these functions will be ASCII |
| 77 * except for the reference fragment (stuff after the '#') which will be | 77 * except for the reference fragment (stuff after the '#') which will be |
| 78 * encoded as UTF-8. | 78 * encoded as UTF-8. |
| 79 */ | 79 */ |
| 80 struct PPB_URLUtil_Dev { | 80 struct PPB_URLUtil_Dev_0_6 { |
| 81 /* | 81 /* |
| 82 * Canonicalizes the given URL string according to the rules of the host | 82 * Canonicalizes the given URL string according to the rules of the host |
| 83 * browser. If the URL is invalid or the var is not a string, this will | 83 * browser. If the URL is invalid or the var is not a string, this will |
| 84 * return a Null var and the components structure will be unchanged. | 84 * return a Null var and the components structure will be unchanged. |
| 85 * | 85 * |
| 86 * The components pointer, if non-NULL and the canonicalized URL is valid, | 86 * The components pointer, if non-NULL and the canonicalized URL is valid, |
| 87 * will identify the components of the resulting URL. Components may be NULL | 87 * will identify the components of the resulting URL. Components may be NULL |
| 88 * to specify that no component information is necessary. | 88 * to specify that no component information is necessary. |
| 89 */ | 89 */ |
| 90 struct PP_Var (*Canonicalize)(struct PP_Var url, | 90 struct PP_Var (*Canonicalize)(struct PP_Var url, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 * based on whether the plugin is loaded from an <embed> element or an | 157 * based on whether the plugin is loaded from an <embed> element or an |
| 158 * <object> element. | 158 * <object> element. |
| 159 * The components pointer, if non-NULL and the canonicalized URL is valid, | 159 * The components pointer, if non-NULL and the canonicalized URL is valid, |
| 160 * will identify the components of the resulting URL. Components may be NULL | 160 * will identify the components of the resulting URL. Components may be NULL |
| 161 * to specify that no component information is necessary. | 161 * to specify that no component information is necessary. |
| 162 */ | 162 */ |
| 163 struct PP_Var (*GetPluginInstanceURL)( | 163 struct PP_Var (*GetPluginInstanceURL)( |
| 164 PP_Instance instance, | 164 PP_Instance instance, |
| 165 struct PP_URLComponents_Dev* components); | 165 struct PP_URLComponents_Dev* components); |
| 166 }; | 166 }; |
| 167 |
| 168 typedef struct PPB_URLUtil_Dev_0_6 PPB_URLUtil_Dev; |
| 167 /** | 169 /** |
| 168 * @} | 170 * @} |
| 169 */ | 171 */ |
| 170 | 172 |
| 171 #endif /* PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ */ | 173 #endif /* PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ */ |
| 172 | 174 |
| OLD | NEW |