| 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 18 matching lines...) Expand all Loading... |
| 29 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", | 29 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", |
| 30 base::FEATURE_ENABLED_BY_DEFAULT}; | 30 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 31 | 31 |
| 32 // Enables the credential management API: | 32 // Enables the credential management API: |
| 33 // https://w3c.github.io/webappsec-credential-management/ | 33 // https://w3c.github.io/webappsec-credential-management/ |
| 34 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 34 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
| 35 base::FEATURE_ENABLED_BY_DEFAULT}; | 35 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 36 | 36 |
| 37 // Enable GPU Rasterization by default. This can still be overridden by | 37 // Enable GPU Rasterization by default. This can still be overridden by |
| 38 // --force-gpu-rasterization or --disable-gpu-rasterization. | 38 // --force-gpu-rasterization or --disable-gpu-rasterization. |
| 39 #if defined(OS_ANDROID) || defined(OS_MACOSX) |
| 40 // DefaultEnableGpuRasterization has launched on Android and Mac. |
| 41 const base::Feature kDefaultEnableGpuRasterization{ |
| 42 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 43 #else |
| 39 const base::Feature kDefaultEnableGpuRasterization{ | 44 const base::Feature kDefaultEnableGpuRasterization{ |
| 40 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 45 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 46 #endif |
| 41 | 47 |
| 42 // Speculatively pre-evaluate Javascript which will likely use document.write to | 48 // 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 | 49 // load an external script. The feature extracts the written markup and sends it |
| 44 // to the preload scanner. | 50 // to the preload scanner. |
| 45 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 51 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
| 46 base::FEATURE_DISABLED_BY_DEFAULT}; | 52 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 47 | 53 |
| 48 // Throttle tasks in Blink background timer queues based on CPU budgets | 54 // Throttle tasks in Blink background timer queues based on CPU budgets |
| 49 // for the background tab. Bug: https://crbug.com/639852. | 55 // for the background tab. Bug: https://crbug.com/639852. |
| 50 const base::Feature kExpensiveBackgroundTimerThrottling{ | 56 const base::Feature kExpensiveBackgroundTimerThrottling{ |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 #endif | 246 #endif |
| 241 | 247 |
| 242 #if defined(OS_WIN) | 248 #if defined(OS_WIN) |
| 243 // Emergency "off switch" for new Windows sandbox security mitigation, | 249 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 244 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 250 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 245 const base::Feature kWinSboxDisableExtensionPoints{ | 251 const base::Feature kWinSboxDisableExtensionPoints{ |
| 246 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 252 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 247 #endif | 253 #endif |
| 248 | 254 |
| 249 } // namespace features | 255 } // namespace features |
| OLD | NEW |