| Index: ppapi/c/dev/ppb_url_util_dev.h
|
| ===================================================================
|
| --- ppapi/c/dev/ppb_url_util_dev.h (revision 219784)
|
| +++ ppapi/c/dev/ppb_url_util_dev.h (working copy)
|
| @@ -3,7 +3,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -/* From dev/ppb_url_util_dev.idl modified Fri Dec 16 17:34:59 2011. */
|
| +/* From dev/ppb_url_util_dev.idl modified Wed Aug 28 19:09:17 2013. */
|
|
|
| #ifndef PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_
|
| #define PPAPI_C_DEV_PPB_URL_UTIL_DEV_H_
|
| @@ -15,7 +15,8 @@
|
| #include "ppapi/c/pp_var.h"
|
|
|
| #define PPB_URLUTIL_DEV_INTERFACE_0_6 "PPB_URLUtil(Dev);0.6"
|
| -#define PPB_URLUTIL_DEV_INTERFACE PPB_URLUTIL_DEV_INTERFACE_0_6
|
| +#define PPB_URLUTIL_DEV_INTERFACE_0_7 "PPB_URLUtil(Dev);0.7"
|
| +#define PPB_URLUTIL_DEV_INTERFACE PPB_URLUTIL_DEV_INTERFACE_0_7
|
|
|
| /**
|
| * @file
|
| @@ -77,7 +78,7 @@
|
| * except for the reference fragment (stuff after the '#') which will be
|
| * encoded as UTF-8.
|
| */
|
| -struct PPB_URLUtil_Dev_0_6 {
|
| +struct PPB_URLUtil_Dev_0_7 {
|
| /*
|
| * Canonicalizes the given URL string according to the rules of the host
|
| * browser. If the URL is invalid or the var is not a string, this will
|
| @@ -163,9 +164,41 @@
|
| struct PP_Var (*GetPluginInstanceURL)(
|
| PP_Instance instance,
|
| struct PP_URLComponents_Dev* components);
|
| + /*
|
| + * Returns the Referrer URL of the HTTP request that loaded the plugin. This
|
| + * is the value of the 'Referer' header of the request. An undefined value
|
| + * means the 'Referer' header was absent.
|
| + * The components pointer, if non-NULL and the canonicalized URL is valid,
|
| + * will identify the components of the resulting URL. Components may be NULL
|
| + * to specify that no component information is necessary.
|
| + */
|
| + struct PP_Var (*GetPluginReferrerURL)(
|
| + PP_Instance instance,
|
| + struct PP_URLComponents_Dev* components);
|
| };
|
|
|
| -typedef struct PPB_URLUtil_Dev_0_6 PPB_URLUtil_Dev;
|
| +typedef struct PPB_URLUtil_Dev_0_7 PPB_URLUtil_Dev;
|
| +
|
| +struct PPB_URLUtil_Dev_0_6 {
|
| + struct PP_Var (*Canonicalize)(struct PP_Var url,
|
| + struct PP_URLComponents_Dev* components);
|
| + struct PP_Var (*ResolveRelativeToURL)(
|
| + struct PP_Var base_url,
|
| + struct PP_Var relative_string,
|
| + struct PP_URLComponents_Dev* components);
|
| + struct PP_Var (*ResolveRelativeToDocument)(
|
| + PP_Instance instance,
|
| + struct PP_Var relative_string,
|
| + struct PP_URLComponents_Dev* components);
|
| + PP_Bool (*IsSameSecurityOrigin)(struct PP_Var url_a, struct PP_Var url_b);
|
| + PP_Bool (*DocumentCanRequest)(PP_Instance instance, struct PP_Var url);
|
| + PP_Bool (*DocumentCanAccessDocument)(PP_Instance active, PP_Instance target);
|
| + struct PP_Var (*GetDocumentURL)(PP_Instance instance,
|
| + struct PP_URLComponents_Dev* components);
|
| + struct PP_Var (*GetPluginInstanceURL)(
|
| + PP_Instance instance,
|
| + struct PP_URLComponents_Dev* components);
|
| +};
|
| /**
|
| * @}
|
| */
|
|
|