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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: update public/platform/OWNERS per presubmit 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
« no previous file with comments | « content/browser/devtools/protocol/network_handler.cc ('k') | content/public/common/referrer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 5a380418d28d011a9ddcdc29c4ad4f6b2ec163bb..ea9668e229b9bf6b42455f8f71851fa91adca6d8 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -186,6 +186,10 @@ blink::WebReferrerPolicy NetReferrerPolicyToBlinkReferrerPolicy(
return blink::kWebReferrerPolicyAlways;
case net::URLRequest::ORIGIN:
return blink::kWebReferrerPolicyOrigin;
+ case net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN:
+ return blink::kWebReferrerPolicySameOrigin;
+ case net::URLRequest::ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE:
+ return blink::kWebReferrerPolicyStrictOrigin;
case net::URLRequest::NO_REFERRER:
return blink::kWebReferrerPolicyNever;
case net::URLRequest::MAX_REFERRER_POLICY:
« no previous file with comments | « content/browser/devtools/protocol/network_handler.cc ('k') | content/public/common/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698