14 template <>
const char* interface_name<PPB_URLUtil_Dev_0_6>() {
15 return PPB_URLUTIL_DEV_INTERFACE_0_6;
18 template <>
const char* interface_name<PPB_URLUtil_Dev_0_7>() {
19 return PPB_URLUTIL_DEV_INTERFACE_0_7;
27 static bool tried_to_init =
false;
28 static bool interface_available =
false;
32 if (has_interface<PPB_URLUtil_Dev_0_7>() ||
33 has_interface<PPB_URLUtil_Dev_0_6>())
34 interface_available =
true;
37 if (!interface_available)
43 PP_URLComponents_Dev* components)
const {
44 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
49 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
58 const Var& relative_string,
59 PP_URLComponents_Dev* components)
const {
60 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
67 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
79 const Var& relative_string,
80 PP_URLComponents_Dev* components)
const {
81 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
88 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
99 const Var& url_b)
const {
100 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
106 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
116 const Var& url)
const {
117 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
123 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
135 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
141 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
151 PP_URLComponents_Dev* components)
const {
152 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
158 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
168 PP_URLComponents_Dev* components)
const {
169 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
175 if (has_interface<PPB_URLUtil_Dev_0_6>()) {
185 PP_URLComponents_Dev* components)
const {
186 if (has_interface<PPB_URLUtil_Dev_0_7>()) {
bool DocumentCanRequest(const InstanceHandle &instance, const Var &url) const
Var GetDocumentURL(const InstanceHandle &instance, PP_URLComponents_Dev *components=NULL) const
Var GetPluginReferrerURL(const InstanceHandle &instance, PP_URLComponents_Dev *components=NULL) const
Var Canonicalize(const Var &url, PP_URLComponents_Dev *components=NULL) const
static const URLUtil_Dev * Get()
const PP_Var & pp_var() const
Var ResolveRelativeToDocument(const InstanceHandle &instance, const Var &relative_string, PP_URLComponents_Dev *components=NULL) const
bool DocumentCanAccessDocument(const InstanceHandle &active, const InstanceHandle &target) const
Var ResolveRelativeToURL(const Var &base_url, const Var &relative_string, PP_URLComponents_Dev *components=NULL) const
A generic type used for passing data types between the module and the page.
PP_Instance pp_instance() const
Var GetPluginInstanceURL(const InstanceHandle &instance, PP_URLComponents_Dev *components=NULL) const
bool IsSameSecurityOrigin(const Var &url_a, const Var &url_b) const