| 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 // Block subresource requests whose URLs contain embedded credentials (e.g. |
| 18 // `https://user:pass@example.com/resource`). |
| 19 const base::Feature kBlockCredentialedSubresources{ |
| 20 "BlockCredentialedSubresources", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 |
| 17 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 22 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
| 18 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 23 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 19 const base::Feature kBrotliEncoding{"brotli-encoding", | 24 const base::Feature kBrotliEncoding{"brotli-encoding", |
| 20 base::FEATURE_ENABLED_BY_DEFAULT}; | 25 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 | 26 |
| 22 // Enables browser side navigation (aka PlzNavigate). http://crbug.com/368813 | 27 // Enables browser side navigation (aka PlzNavigate). http://crbug.com/368813 |
| 23 const base::Feature kBrowserSideNavigation{"browser-side-navigation", | 28 const base::Feature kBrowserSideNavigation{"browser-side-navigation", |
| 24 base::FEATURE_DISABLED_BY_DEFAULT}; | 29 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 | 30 |
| 26 // If Canvas2D Image Chromium is allowed, this feature controls whether it is | 31 // If Canvas2D Image Chromium is allowed, this feature controls whether it is |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 #endif // !defined(OS_ANDROID) | 293 #endif // !defined(OS_ANDROID) |
| 289 | 294 |
| 290 #if defined(OS_WIN) | 295 #if defined(OS_WIN) |
| 291 // Emergency "off switch" for new Windows sandbox security mitigation, | 296 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 292 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 297 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 293 const base::Feature kWinSboxDisableExtensionPoints{ | 298 const base::Feature kWinSboxDisableExtensionPoints{ |
| 294 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 299 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 295 #endif | 300 #endif |
| 296 | 301 |
| 297 } // namespace features | 302 } // namespace features |
| OLD | NEW |