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

Side by Side Diff: third_party/WebKit/public/platform/WebReferrerPolicy.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 35
36 enum WebReferrerPolicy { 36 enum WebReferrerPolicy {
37 kWebReferrerPolicyAlways, 37 kWebReferrerPolicyAlways,
38 kWebReferrerPolicyDefault, 38 kWebReferrerPolicyDefault,
39 kWebReferrerPolicyNoReferrerWhenDowngrade, 39 kWebReferrerPolicyNoReferrerWhenDowngrade,
40 kWebReferrerPolicyNever, 40 kWebReferrerPolicyNever,
41 kWebReferrerPolicyOrigin, 41 kWebReferrerPolicyOrigin,
42 kWebReferrerPolicyOriginWhenCrossOrigin, 42 kWebReferrerPolicyOriginWhenCrossOrigin,
43 kWebReferrerPolicySameOrigin,
jochen (gone - plz use gerrit) 2017/06/06 14:51:27 these should go at the end, as we write the static
estark 2017/06/06 22:41:00 Ah, ok, good to know. Switched the order, and adde
44 kWebReferrerPolicyStrictOrigin,
45 // This policy corresponds to strict-origin-when-cross-origin.
46 // TODO(estark): rename to match the spec.
43 kWebReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin, 47 kWebReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin,
44 kWebReferrerPolicyLast = 48 kWebReferrerPolicyLast =
45 kWebReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin 49 kWebReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin
46 }; 50 };
47 51
48 } // namespace blink 52 } // namespace blink
49 53
50 #endif 54 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/ReferrerPolicyEnumTraits.h ('k') | third_party/WebKit/public/platform/referrer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698