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

Unified Diff: ppapi/c/dev/ppb_url_util_dev.h

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
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)
@@ -163,6 +163,16 @@
struct PP_Var (*GetPluginInstanceURL)(
PP_Instance instance,
struct PP_URLComponents_Dev* components);
+ /*
+ * Returns the 'Referer' HTTP header value that was sent by the request
+ * that loaded plug-in. Undefined value means 'Referer' header is 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 (*GetPluginRefererURL)(
+ PP_Instance instance,
+ struct PP_URLComponents_Dev* components);
};
typedef struct PPB_URLUtil_Dev_0_6 PPB_URLUtil_Dev;

Powered by Google App Engine
This is Rietveld 408576698