Index: third_party/WebKit/public/web/WebLocalFrame.h |
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
index 75354f0cc7ce647a48b8d002e36cf0e61c0d8743..7aaf98f07aa2e7a448a40607d78c8abbf26d7dc0 100644 |
--- a/third_party/WebKit/public/web/WebLocalFrame.h |
+++ b/third_party/WebKit/public/web/WebLocalFrame.h |
@@ -47,6 +47,7 @@ class WebScriptExecutionCallback; |
class WebSharedWorkerRepositoryClient; |
class WebSpellCheckPanelHostClient; |
class WebTextCheckClient; |
+class WebURL; |
class WebURLLoader; |
class WebView; |
enum class WebTreeScopeType; |
@@ -235,6 +236,13 @@ class WebLocalFrame : public WebFrame { |
virtual void ReportContentSecurityPolicyViolation( |
const blink::WebContentSecurityPolicyViolation&) = 0; |
+ // Sets the referrer for the given request to be the specified URL or |
+ // if that is null, then it sets the referrer to the referrer that the |
+ // frame would use for subresources. NOTE: This method also filters |
+ // out invalid referrers (e.g., it is invalid to send a HTTPS URL as |
+ // the referrer for a HTTP request). |
+ virtual void SetReferrerForRequest(WebURLRequest&, const WebURL&) = 0; |
+ |
// Navigation State ------------------------------------------------------- |
// Returns true if the current frame's load event has not completed. |