| 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 content-initiated, main frame navigations to data URLs. | 12 // Enables content-initiated, main frame navigations to data URLs. |
| 13 // TODO(meacer): Remove when the deprecation is complete. | 13 // TODO(meacer): Remove when the deprecation is complete. |
| 14 // https://www.chromestatus.com/feature/5669602927312896 | 14 // https://www.chromestatus.com/feature/5669602927312896 |
| 15 const base::Feature kAllowContentInitiatedDataUrlNavigations{ | 15 const base::Feature kAllowContentInitiatedDataUrlNavigations{ |
| 16 "AllowContentInitiatedDataUrlNavigations", | 16 "AllowContentInitiatedDataUrlNavigations", |
| 17 base::FEATURE_DISABLED_BY_DEFAULT}; | 17 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 18 | 18 |
| 19 // Enables asm.js to WebAssembly V8 backend. | 19 // Enables asm.js to WebAssembly V8 backend. |
| 20 // http://asmjs.org/spec/latest/ | 20 // http://asmjs.org/spec/latest/ |
| 21 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly", | 21 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly", |
| 22 base::FEATURE_DISABLED_BY_DEFAULT}; | 22 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 23 | 23 |
| 24 // Enables async wheel events. |
| 25 const base::Feature kAsyncWheelEvents{"kAsyncWheelEvents", |
| 26 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 27 |
| 24 // Block subresource requests whose URLs contain embedded credentials (e.g. | 28 // Block subresource requests whose URLs contain embedded credentials (e.g. |
| 25 // `https://user:pass@example.com/resource`). | 29 // `https://user:pass@example.com/resource`). |
| 26 const base::Feature kBlockCredentialedSubresources{ | 30 const base::Feature kBlockCredentialedSubresources{ |
| 27 "BlockCredentialedSubresources", base::FEATURE_ENABLED_BY_DEFAULT}; | 31 "BlockCredentialedSubresources", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 28 | 32 |
| 29 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 33 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
| 30 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 34 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 31 const base::Feature kBrotliEncoding{"brotli-encoding", | 35 const base::Feature kBrotliEncoding{"brotli-encoding", |
| 32 base::FEATURE_ENABLED_BY_DEFAULT}; | 36 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 33 | 37 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 #endif | 377 #endif |
| 374 | 378 |
| 375 #if defined(OS_WIN) | 379 #if defined(OS_WIN) |
| 376 // Emergency "off switch" for new Windows sandbox security mitigation, | 380 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 377 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 381 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 378 const base::Feature kWinSboxDisableExtensionPoints{ | 382 const base::Feature kWinSboxDisableExtensionPoints{ |
| 379 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 383 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 380 #endif | 384 #endif |
| 381 | 385 |
| 382 } // namespace features | 386 } // namespace features |
| OLD | NEW |