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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/public/common/content_features.h" | 6 #include "content/public/common/content_features.h" |
7 | 7 |
8 namespace features { | 8 namespace features { |
9 | 9 |
10 // All features in alphabetical order. | 10 // All features in alphabetical order. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 }; | 104 }; |
105 | 105 |
106 // Enables the memory coordinator. | 106 // Enables the memory coordinator. |
107 // WARNING: | 107 // WARNING: |
108 // The memory coordinator is not ready for use and enabling this may cause | 108 // The memory coordinator is not ready for use and enabling this may cause |
109 // unexpected memory regression at this point. Please do not enable this. | 109 // unexpected memory regression at this point. Please do not enable this. |
110 const base::Feature kMemoryCoordinator { | 110 const base::Feature kMemoryCoordinator { |
111 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT | 111 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT |
112 }; | 112 }; |
113 | 113 |
| 114 // An experiment forcing events to be non-blocking when the main thread is |
| 115 // deemed unresponsive. See crbug.com/599609. |
| 116 const base::Feature kMainThreadBusyScrollIntervention{ |
| 117 "MainThreadBusyScrollIntervention", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 118 |
114 // Non-validating reload for desktop. | 119 // Non-validating reload for desktop. |
115 // See https://crbug.com/591245 | 120 // See https://crbug.com/591245 |
116 const base::Feature kNonValidatingReloadOnNormalReload{ | 121 const base::Feature kNonValidatingReloadOnNormalReload{ |
117 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; | 122 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; |
118 | 123 |
119 // An experiment to optimize resource loading IPC for small resources. | 124 // An experiment to optimize resource loading IPC for small resources. |
120 // http://crbug.com/580928 | 125 // http://crbug.com/580928 |
121 const base::Feature kOptimizeLoadingIPCForSmallResources{ | 126 const base::Feature kOptimizeLoadingIPCForSmallResources{ |
122 "OptimizeLoadingIPCForSmallResources", | 127 "OptimizeLoadingIPCForSmallResources", |
123 base::FEATURE_DISABLED_BY_DEFAULT}; | 128 base::FEATURE_DISABLED_BY_DEFAULT}; |
124 | 129 |
125 // Origin Trials for controlling access to feature/API experiments. | 130 // Origin Trials for controlling access to feature/API experiments. |
126 const base::Feature kOriginTrials{"OriginTrials", | 131 const base::Feature kOriginTrials{"OriginTrials", |
127 base::FEATURE_ENABLED_BY_DEFAULT}; | 132 base::FEATURE_ENABLED_BY_DEFAULT}; |
128 | 133 |
129 // Whether the lookahead parser in Blink runs on the main thread. | 134 // Whether the lookahead parser in Blink runs on the main thread. |
130 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", | 135 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", |
131 base::FEATURE_DISABLED_BY_DEFAULT}; | 136 base::FEATURE_DISABLED_BY_DEFAULT}; |
132 | 137 |
133 // Whether document level event listeners should default 'passive' to true. | 138 // Whether document level event listeners should default 'passive' to true. |
134 const base::Feature kPassiveDocumentEventListeners{ | 139 const base::Feature kPassiveDocumentEventListeners{ |
135 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; | 140 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; |
136 | 141 |
137 // Whether we should force a touchstart and first touchmove per scroll event | 142 // Whether we should force a touchstart and first touchmove per scroll event |
138 // listeners to be 'passive' during fling. | 143 // listeners to be non-blocking during fling. |
139 const base::Feature kPassiveEventListenersDueToFling{ | 144 const base::Feature kPassiveEventListenersDueToFling{ |
140 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; | 145 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; |
141 | 146 |
142 // Pointer events support. | 147 // Pointer events support. |
143 const base::Feature kPointerEvents{"PointerEvent", | 148 const base::Feature kPointerEvents{"PointerEvent", |
144 base::FEATURE_ENABLED_BY_DEFAULT}; | 149 base::FEATURE_ENABLED_BY_DEFAULT}; |
145 | 150 |
146 // Whether pointer event capturing follow v1 spec instead of v2 proposal. | 151 // Whether pointer event capturing follow v1 spec instead of v2 proposal. |
147 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html. | 152 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html. |
148 const base::Feature kPointerEventV1SpecCapturing{ | 153 const base::Feature kPointerEventV1SpecCapturing{ |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 #endif | 264 #endif |
260 | 265 |
261 #if defined(OS_WIN) | 266 #if defined(OS_WIN) |
262 // Emergency "off switch" for new Windows sandbox security mitigation, | 267 // Emergency "off switch" for new Windows sandbox security mitigation, |
263 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 268 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
264 const base::Feature kWinSboxDisableExtensionPoints{ | 269 const base::Feature kWinSboxDisableExtensionPoints{ |
265 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 270 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
266 #endif | 271 #endif |
267 | 272 |
268 } // namespace features | 273 } // namespace features |
OLD | NEW |