OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file defines all the public base::FeatureList features for the content | 5 // This file defines all the public base::FeatureList features for the content |
6 // module. | 6 // module. |
7 | 7 |
8 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 8 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
9 #define CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 9 #define CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; | 64 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; |
65 CONTENT_EXPORT extern const base::Feature | 65 CONTENT_EXPORT extern const base::Feature |
66 kRequireSecureOriginsForPepperMediaRequests; | 66 kRequireSecureOriginsForPepperMediaRequests; |
67 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; | 67 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; |
68 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; | 68 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; |
69 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; | 69 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; |
70 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; | 70 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; |
71 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; | 71 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; |
72 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; | 72 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; |
73 CONTENT_EXPORT extern const base::Feature kTokenBinding; | 73 CONTENT_EXPORT extern const base::Feature kTokenBinding; |
74 | |
74 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; | 75 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; |
76 | |
77 // If the kTopDocumentIsolation base::Feature is enabled, then it can be | |
78 // configured by additional parameters (see also GetFieldTrialParamsByFeature). | |
79 // |kTopDocumentIsolationModeParam| is the name of an optional parameter that | |
80 // specifies TopDocumentIsolationMode. Valid values of this parameter are | |
81 // strings that represent numeric values of TopDocumentIsolationMode enum values | |
82 // (e.g. "1" for TopDocumentIsolationMode::CrossSite). | |
Alexei Svitkine (slow)
2017/07/07 16:55:06
Nit: Remove extra space before "1".
Łukasz Anforowicz
2017/07/07 20:41:42
Ooops. How did that happen? I wanted to blame "g
| |
83 CONTENT_EXPORT extern const char kTopDocumentIsolationModeParam[]; | |
84 | |
85 // If the kTopDocumentIsolation base::Feature is enabled, the values of this | |
86 // enum represent the mode for selecting *which* frames to isolate. | |
Alexei Svitkine (slow)
2017/07/07 16:55:05
Can you add a comment that mentions these are spec
Łukasz Anforowicz
2017/07/07 20:41:42
Done.
| |
87 enum class TopDocumentIsolationMode { | |
88 // This value indicates that kTopDocumentIsolationModeParam was not specified. | |
89 // Corresponds to "Enabled" state in chrome://flags (i.e. the user didn't | |
90 // select a more specific isolation mode). | |
91 Unspecified = 0, | |
92 | |
93 // Each of the modes below corresponds to "Enabled (<name> - <description>)" | |
94 // state in chrome://flags. | |
95 #define FOR_EACH_TDI_MODE(V) \ | |
96 V(CrossSite, 1, \ | |
97 "isolate all frames from sites other than the top-level frame") \ | |
98 V(Ads, 2, "isolate only cross-site ads detected by heuristics") | |
99 | |
100 #define DEFINE_TDI_MODE_ENUM_VALUE(name, value, description) name = value, | |
101 FOR_EACH_TDI_MODE(DEFINE_TDI_MODE_ENUM_VALUE) | |
102 #undef DEFINE_TDI_MODE_ENUM_VALUE | |
103 }; | |
104 | |
75 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; | 105 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; |
76 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; | 106 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; |
77 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; | 107 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; |
78 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; | 108 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; |
79 CONTENT_EXPORT extern const base::Feature kVrShell; | 109 CONTENT_EXPORT extern const base::Feature kVrShell; |
80 CONTENT_EXPORT extern const base::Feature kWebAssembly; | 110 CONTENT_EXPORT extern const base::Feature kWebAssembly; |
81 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; | 111 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; |
82 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; | 112 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; |
83 CONTENT_EXPORT extern const base::Feature kWebAuth; | 113 CONTENT_EXPORT extern const base::Feature kWebAuth; |
84 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; | 114 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; |
(...skipping 23 matching lines...) Expand all Loading... | |
108 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
109 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; | 139 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; |
110 #endif // defined(OS_MACOSX) | 140 #endif // defined(OS_MACOSX) |
111 | 141 |
112 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 142 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
113 // alphabetical order, or in one of the ifdefs (also in order in each section). | 143 // alphabetical order, or in one of the ifdefs (also in order in each section). |
114 | 144 |
115 } // namespace features | 145 } // namespace features |
116 | 146 |
117 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 147 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
OLD | NEW |