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

Unified Diff: net/url_request/url_request.h

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: ios fix 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 41410703af7ee903e588d502d1284dcb7680e667..157cc76446d79e88a2e1c9a75c30ef8fa849f595 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,
// Always clear the referrer regardless of the redirect location.
NO_REFERRER,
MAX_REFERRER_POLICY

Powered by Google App Engine
This is Rietveld 408576698