| 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 asm.js to WebAssembly V8 backend. | 12 // Enables asm.js to WebAssembly V8 backend. |
| 13 // http://asmjs.org/spec/latest/ | 13 // http://asmjs.org/spec/latest/ |
| 14 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly", | 14 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly", |
| 15 base::FEATURE_DISABLED_BY_DEFAULT}; | 15 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 16 | 16 |
| 17 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 17 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
| 18 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 18 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 19 const base::Feature kBrotliEncoding{"brotli-encoding", | 19 const base::Feature kBrotliEncoding{"brotli-encoding", |
| 20 base::FEATURE_ENABLED_BY_DEFAULT}; | 20 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 | 21 |
| 22 // Enables browser side navigation (aka PlzNavigate). http://crbug.com/368813 |
| 23 const base::Feature kBrowserSideNavigation{"browser-side-navigation", |
| 24 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 |
| 22 // If Canvas2D Image Chromium is allowed, this feature controls whether it is | 26 // If Canvas2D Image Chromium is allowed, this feature controls whether it is |
| 23 // enabled. | 27 // enabled. |
| 24 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", | 28 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", |
| 25 base::FEATURE_ENABLED_BY_DEFAULT}; | 29 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 26 | 30 |
| 27 // Enables the compositing of fixed position content that is opaque and can | 31 // Enables the compositing of fixed position content that is opaque and can |
| 28 // preserve LCD text. | 32 // preserve LCD text. |
| 29 const base::Feature kCompositeOpaqueFixedPosition{ | 33 const base::Feature kCompositeOpaqueFixedPosition{ |
| 30 "CompositeOpaqueFixedPosition", base::FEATURE_ENABLED_BY_DEFAULT}; | 34 "CompositeOpaqueFixedPosition", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 31 | 35 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 #endif // !defined(OS_ANDROID) | 275 #endif // !defined(OS_ANDROID) |
| 272 | 276 |
| 273 #if defined(OS_WIN) | 277 #if defined(OS_WIN) |
| 274 // Emergency "off switch" for new Windows sandbox security mitigation, | 278 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 275 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 279 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 276 const base::Feature kWinSboxDisableExtensionPoints{ | 280 const base::Feature kWinSboxDisableExtensionPoints{ |
| 277 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 281 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 278 #endif | 282 #endif |
| 279 | 283 |
| 280 } // namespace features | 284 } // namespace features |
| OLD | NEW |