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 dev/ppb_url_util_dev.idl modified Fri Dec 16 17:34:59 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 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 * attribute on the <embed> element, but the rules are obscure and different | 156 * attribute on the <embed> element, but the rules are obscure and different |
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 /* |
| 167 * Returns the Referer URL of the HTTP request that loaded the plugin. This is |
| 168 * the value of the 'Referer' header of the request. An undefined value means |
| 169 * the 'Referer' header was absent. |
| 170 * The components pointer, if non-NULL and the canonicalized URL is valid, |
| 171 * will identify the components of the resulting URL. Components may be NULL |
| 172 * to specify that no component information is necessary. |
| 173 */ |
| 174 struct PP_Var (*GetPluginRefererURL)( |
| 175 PP_Instance instance, |
| 176 struct PP_URLComponents_Dev* components); |
166 }; | 177 }; |
167 | 178 |
168 typedef struct PPB_URLUtil_Dev_0_6 PPB_URLUtil_Dev; | 179 typedef struct PPB_URLUtil_Dev_0_6 PPB_URLUtil_Dev; |
169 /** | 180 /** |
170 * @} | 181 * @} |
171 */ | 182 */ |
172 | 183 |
173 #endif /* PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ */ | 184 #endif /* PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_ */ |
174 | 185 |
OLD | NEW |