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

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, 4 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
« ppapi/api/dev/ppb_url_util_dev.idl ('K') | « 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 219784)
+++ ppapi/thunk/ppb_url_util_thunk.cc (working copy)
@@ -53,6 +53,14 @@
return enter.functions()->GetPluginInstanceURL(instance, components);
}
+PP_Var GetPluginRefererURL(PP_Instance instance,
+ PP_URLComponents_Dev* components) {
+ EnterInstance enter(instance);
+ if (enter.failed())
+ return PP_MakeUndefined();
+ return enter.functions()->GetPluginRefererURL(instance, components);
+}
+
const PPB_URLUtil_Dev g_ppb_url_util = {
&PPB_URLUtil_Shared::Canonicalize,
&PPB_URLUtil_Shared::ResolveRelativeToURL,
@@ -61,7 +69,8 @@
&DocumentCanRequest,
&DocumentCanAccessDocument,
&GetDocumentURL,
- &GetPluginInstanceURL
+ &GetPluginInstanceURL,
+ &GetPluginRefererURL
};
} // namespace
« ppapi/api/dev/ppb_url_util_dev.idl ('K') | « ppapi/thunk/ppb_instance_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698