| 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. |
| 11 | 11 |
| 12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
| 13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 14 const base::Feature kBrotliEncoding{"brotli-encoding", | 14 const base::Feature kBrotliEncoding{"brotli-encoding", |
| 15 base::FEATURE_ENABLED_BY_DEFAULT}; | 15 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 16 | 16 |
| 17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is | 17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is |
| 18 // enabled. | 18 // enabled. |
| 19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", | 19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", |
| 20 base::FEATURE_ENABLED_BY_DEFAULT}; | 20 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 | 21 |
| 22 // Enables the compositing of scrolling content that supports painting the |
| 23 // background with the foreground, such that LCD text will still be enabled. |
| 24 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", |
| 25 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 26 |
| 22 // Enables the credential management API: | 27 // Enables the credential management API: |
| 23 // https://w3c.github.io/webappsec-credential-management/ | 28 // https://w3c.github.io/webappsec-credential-management/ |
| 24 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 29 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
| 25 base::FEATURE_ENABLED_BY_DEFAULT}; | 30 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 26 | 31 |
| 27 // Enable GPU Rasterization by default. This can still be overridden by | 32 // Enable GPU Rasterization by default. This can still be overridden by |
| 28 // --force-gpu-rasterization or --disable-gpu-rasterization. | 33 // --force-gpu-rasterization or --disable-gpu-rasterization. |
| 29 const base::Feature kDefaultEnableGpuRasterization{ | 34 const base::Feature kDefaultEnableGpuRasterization{ |
| 30 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 35 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 31 | 36 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 #endif | 204 #endif |
| 200 | 205 |
| 201 #if defined(OS_WIN) | 206 #if defined(OS_WIN) |
| 202 // Emergency "off switch" for new Windows sandbox security mitigation, | 207 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 203 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 208 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 204 const base::Feature kWinSboxDisableExtensionPoints{ | 209 const base::Feature kWinSboxDisableExtensionPoints{ |
| 205 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 210 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 206 #endif | 211 #endif |
| 207 | 212 |
| 208 } // namespace features | 213 } // namespace features |
| OLD | NEW |