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

Unified Diff: net/url_request/url_request_job.h

Issue 714813003: Referrer Policy: Add new policies to URLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I hate compilers. Created 6 years, 1 month 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: net/url_request/url_request_job.h
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index e824689432599c9623035b8a3d4aa6a6f8808dc1..39f844e019353612083f40fe2146d826e2c441c7 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -227,6 +227,11 @@ class NET_EXPORT URLRequestJob
// canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call.
virtual void NotifyURLRequestDestroyed();
+ // Given |request| and a |url| to which that request is being redirected,
+ // returns the referrer URL mandated by |request|'s referrer policy.
+ static GURL ComputeReferrerForRedirect(const URLRequest& request,
mmenke 2014/11/20 16:23:45 Suggest making this take the policy and the origin
Mike West 2014/11/21 09:29:29 Done.
+ const GURL& redirect_destination);
+
protected:
friend class base::RefCounted<URLRequestJob>;
~URLRequestJob() override;

Powered by Google App Engine
This is Rietveld 408576698