| 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 22 matching lines...) Expand all Loading... |
| 33 // --force-gpu-rasterization or --disable-gpu-rasterization. | 33 // --force-gpu-rasterization or --disable-gpu-rasterization. |
| 34 const base::Feature kDefaultEnableGpuRasterization{ | 34 const base::Feature kDefaultEnableGpuRasterization{ |
| 35 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 35 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 36 | 36 |
| 37 // Speculatively pre-evaluate Javascript which will likely use document.write to | 37 // Speculatively pre-evaluate Javascript which will likely use document.write to |
| 38 // load an external script. The feature extracts the written markup and sends it | 38 // load an external script. The feature extracts the written markup and sends it |
| 39 // to the preload scanner. | 39 // to the preload scanner. |
| 40 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 40 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
| 41 base::FEATURE_DISABLED_BY_DEFAULT}; | 41 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 42 | 42 |
| 43 // Throttle tasks in Blink background timer queues based on CPU budgets | |
| 44 // for the background tab. Bug: https://crbug.com/639852. | |
| 45 const base::Feature kExpensiveBackgroundTimerThrottling{ | |
| 46 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 47 | |
| 48 // Enables the Feature Policy framework for granting and removing access to | 43 // Enables the Feature Policy framework for granting and removing access to |
| 49 // other features through HTTP headers. | 44 // other features through HTTP headers. |
| 50 const base::Feature kFeaturePolicy{"FeaturePolicy", | 45 const base::Feature kFeaturePolicy{"FeaturePolicy", |
| 51 base::FEATURE_DISABLED_BY_DEFAULT}; | 46 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 52 | 47 |
| 53 // Enables a blink::FontCache optimization that reuses a font to serve different | 48 // Enables a blink::FontCache optimization that reuses a font to serve different |
| 54 // size of font. | 49 // size of font. |
| 55 const base::Feature kFontCacheScaling{"FontCacheScaling", | 50 const base::Feature kFontCacheScaling{"FontCacheScaling", |
| 56 base::FEATURE_DISABLED_BY_DEFAULT}; | 51 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 57 | 52 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 #endif | 209 #endif |
| 215 | 210 |
| 216 #if defined(OS_WIN) | 211 #if defined(OS_WIN) |
| 217 // Emergency "off switch" for new Windows sandbox security mitigation, | 212 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 218 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 213 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 219 const base::Feature kWinSboxDisableExtensionPoints{ | 214 const base::Feature kWinSboxDisableExtensionPoints{ |
| 220 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 215 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 221 #endif | 216 #endif |
| 222 | 217 |
| 223 } // namespace features | 218 } // namespace features |
| OLD | NEW |