| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 // Enables the memory coordinator. | 93 // Enables the memory coordinator. |
| 94 // WARNING: | 94 // WARNING: |
| 95 // The memory coordinator is not ready for use and enabling this may cause | 95 // The memory coordinator is not ready for use and enabling this may cause |
| 96 // unexpected memory regression at this point. Please do not enable this. | 96 // unexpected memory regression at this point. Please do not enable this. |
| 97 const base::Feature kMemoryCoordinator { | 97 const base::Feature kMemoryCoordinator { |
| 98 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT | 98 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // An experiment forcing events to be non-blocking when the main thread is |
| 102 // deemed unresponsive. See crbug.com/599609. |
| 103 const base::Feature kMainThreadBusyScrollIntervention{ |
| 104 "MainThreadBusyScrollIntervention", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 105 |
| 101 // Non-validating reload for desktop. | 106 // Non-validating reload for desktop. |
| 102 // See https://crbug.com/591245 | 107 // See https://crbug.com/591245 |
| 103 const base::Feature kNonValidatingReloadOnNormalReload{ | 108 const base::Feature kNonValidatingReloadOnNormalReload{ |
| 104 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; | 109 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 105 | 110 |
| 106 // An experiment to optimize resource loading IPC for small resources. | 111 // An experiment to optimize resource loading IPC for small resources. |
| 107 // http://crbug.com/580928 | 112 // http://crbug.com/580928 |
| 108 const base::Feature kOptimizeLoadingIPCForSmallResources{ | 113 const base::Feature kOptimizeLoadingIPCForSmallResources{ |
| 109 "OptimizeLoadingIPCForSmallResources", | 114 "OptimizeLoadingIPCForSmallResources", |
| 110 base::FEATURE_DISABLED_BY_DEFAULT}; | 115 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 111 | 116 |
| 112 // Origin Trials for controlling access to feature/API experiments. | 117 // Origin Trials for controlling access to feature/API experiments. |
| 113 const base::Feature kOriginTrials{"OriginTrials", | 118 const base::Feature kOriginTrials{"OriginTrials", |
| 114 base::FEATURE_ENABLED_BY_DEFAULT}; | 119 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 115 | 120 |
| 116 // Whether the lookahead parser in Blink runs on the main thread. | 121 // Whether the lookahead parser in Blink runs on the main thread. |
| 117 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", | 122 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", |
| 118 base::FEATURE_DISABLED_BY_DEFAULT}; | 123 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 119 | 124 |
| 120 // Whether document level event listeners should default 'passive' to true. | 125 // Whether document level event listeners should default 'passive' to true. |
| 121 const base::Feature kPassiveDocumentEventListeners{ | 126 const base::Feature kPassiveDocumentEventListeners{ |
| 122 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; | 127 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 123 | 128 |
| 124 // Whether we should force a touchstart and first touchmove per scroll event | 129 // Whether we should force a touchstart and first touchmove per scroll event |
| 125 // listeners to be 'passive' during fling. | 130 // listeners to be non-blocking during fling. |
| 126 const base::Feature kPassiveEventListenersDueToFling{ | 131 const base::Feature kPassiveEventListenersDueToFling{ |
| 127 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; | 132 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 128 | 133 |
| 129 // Pointer events support. | 134 // Pointer events support. |
| 130 const base::Feature kPointerEvents{"PointerEvent", | 135 const base::Feature kPointerEvents{"PointerEvent", |
| 131 base::FEATURE_ENABLED_BY_DEFAULT}; | 136 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 132 | 137 |
| 133 // Whether pointer event capturing follow v1 spec instead of v2 proposal. | 138 // Whether pointer event capturing follow v1 spec instead of v2 proposal. |
| 134 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html. | 139 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html. |
| 135 const base::Feature kPointerEventV1SpecCapturing{ | 140 const base::Feature kPointerEventV1SpecCapturing{ |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 #endif | 244 #endif |
| 240 | 245 |
| 241 #if defined(OS_WIN) | 246 #if defined(OS_WIN) |
| 242 // Emergency "off switch" for new Windows sandbox security mitigation, | 247 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 243 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 248 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 244 const base::Feature kWinSboxDisableExtensionPoints{ | 249 const base::Feature kWinSboxDisableExtensionPoints{ |
| 245 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 250 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 246 #endif | 251 #endif |
| 247 | 252 |
| 248 } // namespace features | 253 } // namespace features |
| OLD | NEW |