OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebReferrerPolicy_h | 31 #ifndef WebReferrerPolicy_h |
32 #define WebReferrerPolicy_h | 32 #define WebReferrerPolicy_h |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
| 36 // These values are serialized and persisted, so do not remove values and add |
| 37 // new ones at the end. |
36 enum WebReferrerPolicy { | 38 enum WebReferrerPolicy { |
37 kWebReferrerPolicyAlways, | 39 kWebReferrerPolicyAlways, |
38 kWebReferrerPolicyDefault, | 40 kWebReferrerPolicyDefault, |
39 kWebReferrerPolicyNoReferrerWhenDowngrade, | 41 kWebReferrerPolicyNoReferrerWhenDowngrade, |
40 kWebReferrerPolicyNever, | 42 kWebReferrerPolicyNever, |
41 kWebReferrerPolicyOrigin, | 43 kWebReferrerPolicyOrigin, |
42 kWebReferrerPolicyOriginWhenCrossOrigin, | 44 kWebReferrerPolicyOriginWhenCrossOrigin, |
| 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 kWebReferrerPolicySameOrigin, |
45 kWebReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin | 49 kWebReferrerPolicyStrictOrigin, |
| 50 kWebReferrerPolicyLast = kWebReferrerPolicyStrictOrigin |
46 }; | 51 }; |
47 | 52 |
48 } // namespace blink | 53 } // namespace blink |
49 | 54 |
50 #endif | 55 #endif |
OLD | NEW |