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

Unified Diff: Source/platform/weborigin/ReferrerPolicy.h

Issue 736233004: Referrer Policy: Introduce "Origin When Cross-Origin". [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Feedback. 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
« no previous file with comments | « Source/core/frame/csp/CSPDirectiveList.cpp ('k') | Source/platform/weborigin/SecurityPolicy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/ReferrerPolicy.h
diff --git a/Source/platform/weborigin/ReferrerPolicy.h b/Source/platform/weborigin/ReferrerPolicy.h
index c143a078962d04310cf3b61a72ab250616f94c19..0f2bd29296fc4a49009b209269d616bb4a10f86f 100644
--- a/Source/platform/weborigin/ReferrerPolicy.h
+++ b/Source/platform/weborigin/ReferrerPolicy.h
@@ -35,13 +35,18 @@
namespace blink {
enum ReferrerPolicy {
+ // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-unsafe-url
ReferrerPolicyAlways,
+ // The default policy, if no policy is explicitly set by the page.
ReferrerPolicyDefault,
+ // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-no-referrer-when-downgrade
ReferrerPolicyNoReferrerWhenDowngrade,
+ // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-no-referrer
ReferrerPolicyNever,
- // Same as ReferrerPolicyAlways, except that only the origin of the
- // referring URL is send.
+ // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-origin
ReferrerPolicyOrigin,
+ // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-origin-when-cross-origin
+ ReferrerPolicyOriginWhenCrossOrigin,
};
}
« no previous file with comments | « Source/core/frame/csp/CSPDirectiveList.cpp ('k') | Source/platform/weborigin/SecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698