| 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. |
| 13 // http://asmjs.org/spec/latest/ |
| 14 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly", |
| 15 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 16 |
| 12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 17 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
| 13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 18 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
| 14 const base::Feature kBrotliEncoding{"brotli-encoding", | 19 const base::Feature kBrotliEncoding{"brotli-encoding", |
| 15 base::FEATURE_ENABLED_BY_DEFAULT}; | 20 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 16 | 21 |
| 17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is | 22 // If Canvas2D Image Chromium is allowed, this feature controls whether it is |
| 18 // enabled. | 23 // enabled. |
| 19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", | 24 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", |
| 20 base::FEATURE_ENABLED_BY_DEFAULT}; | 25 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 | 26 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 167 |
| 163 // Enables token binding | 168 // Enables token binding |
| 164 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). | 169 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). |
| 165 const base::Feature kTokenBinding{"token-binding", | 170 const base::Feature kTokenBinding{"token-binding", |
| 166 base::FEATURE_DISABLED_BY_DEFAULT}; | 171 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 167 | 172 |
| 168 // Enables touchpad and wheel scroll latching. | 173 // Enables touchpad and wheel scroll latching. |
| 169 const base::Feature kTouchpadAndWheelScrollLatching{ | 174 const base::Feature kTouchpadAndWheelScrollLatching{ |
| 170 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; | 175 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 171 | 176 |
| 177 // Enable WebAssembly. |
| 178 // http://webassembly.org/ |
| 179 const base::Feature kWebAssembly{"WebAssembly", |
| 180 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 181 |
| 172 // If WebGL Image Chromium is allowed, this feature controls whether it is | 182 // If WebGL Image Chromium is allowed, this feature controls whether it is |
| 173 // enabled. | 183 // enabled. |
| 174 const base::Feature kWebGLImageChromium{"WebGLImageChromium", | 184 const base::Feature kWebGLImageChromium{"WebGLImageChromium", |
| 175 base::FEATURE_ENABLED_BY_DEFAULT}; | 185 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 176 | 186 |
| 177 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 187 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
| 178 // specified in JS). | 188 // specified in JS). |
| 179 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 189 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
| 180 base::FEATURE_ENABLED_BY_DEFAULT}; | 190 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 181 | 191 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 #endif | 224 #endif |
| 215 | 225 |
| 216 #if defined(OS_WIN) | 226 #if defined(OS_WIN) |
| 217 // Emergency "off switch" for new Windows sandbox security mitigation, | 227 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 218 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 228 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 219 const base::Feature kWinSboxDisableExtensionPoints{ | 229 const base::Feature kWinSboxDisableExtensionPoints{ |
| 220 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 230 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 221 #endif | 231 #endif |
| 222 | 232 |
| 223 } // namespace features | 233 } // namespace features |
| OLD | NEW |