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

Unified Diff: net/url_request/url_request.h

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: rebase Created 3 years, 6 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: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index e5b06ad0c0e6535794763bb1c7a6939b11681ddd..b98b3ffe03dbbb03ab914bc945abb1d82a0b07be 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -105,6 +105,11 @@ class NET_EXPORT URLRequest : public base::SupportsUserData {
// Strip the referrer down to the origin regardless of the redirect
// location.
ORIGIN,
+ // Clear the referrer on cross-origin redirect locations.
+ CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN,
+ // Strip the referrer down to the origin, but clear it entirely if the
+ // protocol changes from HTTPS to HTTP.
+ ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
mmenke 2017/06/07 21:03:57 These names aren't accurate - not sure if there's
estark 2017/06/08 18:42:57 Updated the comments. I think it would also help t
// Always clear the referrer regardless of the redirect location.
NO_REFERRER,
MAX_REFERRER_POLICY

Powered by Google App Engine
This is Rietveld 408576698