| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 29 matching lines...) Expand all Loading... |
| 40 // The default policy, if no policy is explicitly set by the page. | 40 // The default policy, if no policy is explicitly set by the page. |
| 41 kReferrerPolicyDefault, | 41 kReferrerPolicyDefault, |
| 42 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-no-referrer-when-downgrade | 42 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-no-referrer-when-downgrade |
| 43 kReferrerPolicyNoReferrerWhenDowngrade, | 43 kReferrerPolicyNoReferrerWhenDowngrade, |
| 44 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-no-referrer | 44 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-no-referrer |
| 45 kReferrerPolicyNever, | 45 kReferrerPolicyNever, |
| 46 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-origin | 46 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-origin |
| 47 kReferrerPolicyOrigin, | 47 kReferrerPolicyOrigin, |
| 48 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-origin-when-cross-origin | 48 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat
e-origin-when-cross-origin |
| 49 kReferrerPolicyOriginWhenCrossOrigin, | 49 kReferrerPolicyOriginWhenCrossOrigin, |
| 50 // Not spec conformant. set only when reduced-referrer-granularity is enabled. | 50 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origi
n |
| 51 kReferrerPolicySameOrigin, |
| 52 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori
gin |
| 53 kReferrerPolicyStrictOrigin, |
| 54 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori
gin-when-cross-origin |
| 55 // Also used as the default policy when reduced-referrer-grnaularity is |
| 56 // enabled (not spec conformant). |
| 57 // TODO(estark): rename to kReferrerPolicyStrictOriginWhenCrossOrigin to |
| 58 // match spec. |
| 51 kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin, | 59 kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin, |
| 52 }; | 60 }; |
| 53 | 61 |
| 54 } // namespace blink | 62 } // namespace blink |
| 55 | 63 |
| 56 #endif // ReferrerPolicy_h | 64 #endif // ReferrerPolicy_h |
| OLD | NEW |