Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: ppapi/thunk/ppb_url_util_thunk.cc

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_instance_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_url_util_thunk.cc
===================================================================
--- ppapi/thunk/ppb_url_util_thunk.cc (revision 221828)
+++ ppapi/thunk/ppb_url_util_thunk.cc (working copy)
@@ -53,7 +53,15 @@
return enter.functions()->GetPluginInstanceURL(instance, components);
}
-const PPB_URLUtil_Dev g_ppb_url_util = {
+PP_Var GetPluginReferrerURL(PP_Instance instance,
+ PP_URLComponents_Dev* components) {
+ EnterInstance enter(instance);
+ if (enter.failed())
+ return PP_MakeUndefined();
+ return enter.functions()->GetPluginReferrerURL(instance, components);
+}
+
+const PPB_URLUtil_Dev_0_6 g_ppb_url_util_0_6 = {
&PPB_URLUtil_Shared::Canonicalize,
&PPB_URLUtil_Shared::ResolveRelativeToURL,
&ResolveRelativeToDocument,
@@ -64,11 +72,27 @@
&GetPluginInstanceURL
};
+const PPB_URLUtil_Dev_0_7 g_ppb_url_util_0_7 = {
+ &PPB_URLUtil_Shared::Canonicalize,
+ &PPB_URLUtil_Shared::ResolveRelativeToURL,
+ &ResolveRelativeToDocument,
+ &PPB_URLUtil_Shared::IsSameSecurityOrigin,
+ &DocumentCanRequest,
+ &DocumentCanAccessDocument,
+ &GetDocumentURL,
+ &GetPluginInstanceURL,
+ &GetPluginReferrerURL
+};
+
} // namespace
const PPB_URLUtil_Dev_0_6* GetPPB_URLUtil_Dev_0_6_Thunk() {
- return &g_ppb_url_util;
+ return &g_ppb_url_util_0_6;
}
+const PPB_URLUtil_Dev_0_7* GetPPB_URLUtil_Dev_0_7_Thunk() {
+ return &g_ppb_url_util_0_7;
+}
+
} // namespace thunk
} // namespace ppapi
« no previous file with comments | « ppapi/thunk/ppb_instance_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698