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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/ReferrerPolicy.h

Issue 2920663002: Class/struct layout optimization for blink Resource related classes (Closed)
Patch Set: Rebase 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) 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 16 matching lines...) Expand all
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 31
32 #ifndef ReferrerPolicy_h 32 #ifndef ReferrerPolicy_h
33 #define ReferrerPolicy_h 33 #define ReferrerPolicy_h
34 34
35 namespace blink { 35 namespace blink {
36 36
37 enum ReferrerPolicy { 37 enum ReferrerPolicy : uint8_t {
38 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat e-unsafe-url 38 // https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-stat e-unsafe-url
39 kReferrerPolicyAlways, 39 kReferrerPolicyAlways,
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 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori gin-when-cross-origin 50 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori gin-when-cross-origin
51 // Also used as the default policy when reduced-referrer-grnaularity is 51 // Also used as the default policy when reduced-referrer-grnaularity is
52 // enabled (not spec conformant). 52 // enabled (not spec conformant).
53 // TODO(estark): rename to kReferrerPolicyStrictOriginWhenCrossOrigin to 53 // TODO(estark): rename to kReferrerPolicyStrictOriginWhenCrossOrigin to
54 // match spec. 54 // match spec.
55 kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin, 55 kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin,
56 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origi n 56 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origi n
57 kReferrerPolicySameOrigin, 57 kReferrerPolicySameOrigin,
58 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori gin 58 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-ori gin
59 kReferrerPolicyStrictOrigin, 59 kReferrerPolicyStrictOrigin,
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // ReferrerPolicy_h 64 #endif // ReferrerPolicy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698