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