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 25 matching lines...) Expand all Loading... |
36 // Enables the compositing of scrolling content that supports painting the | 36 // Enables the compositing of scrolling content that supports painting the |
37 // background with the foreground, such that LCD text will still be enabled. | 37 // background with the foreground, such that LCD text will still be enabled. |
38 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", | 38 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", |
39 base::FEATURE_ENABLED_BY_DEFAULT}; | 39 base::FEATURE_ENABLED_BY_DEFAULT}; |
40 | 40 |
41 // Enables the credential management API: | 41 // Enables the credential management API: |
42 // https://w3c.github.io/webappsec-credential-management/ | 42 // https://w3c.github.io/webappsec-credential-management/ |
43 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 43 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
44 base::FEATURE_ENABLED_BY_DEFAULT}; | 44 base::FEATURE_ENABLED_BY_DEFAULT}; |
45 | 45 |
46 // Enable GPU Rasterization by default. This can still be overridden by | |
47 // --force-gpu-rasterization or --disable-gpu-rasterization. | |
48 #if defined(OS_ANDROID) || defined(OS_MACOSX) | |
49 // DefaultEnableGpuRasterization has launched on Android and Mac. | |
50 const base::Feature kDefaultEnableGpuRasterization{ | |
51 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; | |
52 #else | |
53 const base::Feature kDefaultEnableGpuRasterization{ | |
54 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | |
55 #endif | |
56 | |
57 // Speculatively pre-evaluate Javascript which will likely use document.write to | 46 // Speculatively pre-evaluate Javascript which will likely use document.write to |
58 // load an external script. The feature extracts the written markup and sends it | 47 // load an external script. The feature extracts the written markup and sends it |
59 // to the preload scanner. | 48 // to the preload scanner. |
60 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 49 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
61 base::FEATURE_DISABLED_BY_DEFAULT}; | 50 base::FEATURE_DISABLED_BY_DEFAULT}; |
62 | 51 |
63 // Throttle tasks in Blink background timer queues based on CPU budgets | 52 // Throttle tasks in Blink background timer queues based on CPU budgets |
64 // for the background tab. Bug: https://crbug.com/639852. | 53 // for the background tab. Bug: https://crbug.com/639852. |
65 const base::Feature kExpensiveBackgroundTimerThrottling{ | 54 const base::Feature kExpensiveBackgroundTimerThrottling{ |
66 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT}; | 55 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 #endif // !defined(OS_ANDROID) | 284 #endif // !defined(OS_ANDROID) |
296 | 285 |
297 #if defined(OS_WIN) | 286 #if defined(OS_WIN) |
298 // Emergency "off switch" for new Windows sandbox security mitigation, | 287 // Emergency "off switch" for new Windows sandbox security mitigation, |
299 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 288 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
300 const base::Feature kWinSboxDisableExtensionPoints{ | 289 const base::Feature kWinSboxDisableExtensionPoints{ |
301 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 290 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
302 #endif | 291 #endif |
303 | 292 |
304 } // namespace features | 293 } // namespace features |
OLD | NEW |