| 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. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Enables the credential management API: | 22 // Enables the credential management API: |
| 23 // https://w3c.github.io/webappsec-credential-management/ | 23 // https://w3c.github.io/webappsec-credential-management/ |
| 24 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 24 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
| 25 base::FEATURE_ENABLED_BY_DEFAULT}; | 25 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 26 | 26 |
| 27 // Enable GPU Rasterization by default. This can still be overridden by | 27 // Enable GPU Rasterization by default. This can still be overridden by |
| 28 // --force-gpu-rasterization or --disable-gpu-rasterization. | 28 // --force-gpu-rasterization or --disable-gpu-rasterization. |
| 29 const base::Feature kDefaultEnableGpuRasterization{ | 29 const base::Feature kDefaultEnableGpuRasterization{ |
| 30 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 30 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 31 | 31 |
| 32 // Do not call SharedBuffer::unlock() (https://crbug.com/603791). | |
| 33 const base::Feature kDoNotUnlockSharedBuffer{"DoNotUnlockSharedBuffer", | |
| 34 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 35 | |
| 36 // Speculatively pre-evaluate Javascript which will likely use document.write to | 32 // Speculatively pre-evaluate Javascript which will likely use document.write to |
| 37 // load an external script. The feature extracts the written markup and sends it | 33 // load an external script. The feature extracts the written markup and sends it |
| 38 // to the preload scanner. | 34 // to the preload scanner. |
| 39 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 35 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
| 40 base::FEATURE_DISABLED_BY_DEFAULT}; | 36 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 41 | 37 |
| 42 // Enables the Feature Policy framework for granting and removing access to | 38 // Enables the Feature Policy framework for granting and removing access to |
| 43 // other features through HTTP headers. | 39 // other features through HTTP headers. |
| 44 const base::Feature kFeaturePolicy{"FeaturePolicy", | 40 const base::Feature kFeaturePolicy{"FeaturePolicy", |
| 45 base::FEATURE_DISABLED_BY_DEFAULT}; | 41 base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 137 |
| 142 // Enables token binding | 138 // Enables token binding |
| 143 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). | 139 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). |
| 144 const base::Feature kTokenBinding{"token-binding", | 140 const base::Feature kTokenBinding{"token-binding", |
| 145 base::FEATURE_DISABLED_BY_DEFAULT}; | 141 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 146 | 142 |
| 147 // Enables touchpad and wheel scroll latching. | 143 // Enables touchpad and wheel scroll latching. |
| 148 const base::Feature kTouchpadAndWheelScrollLatching{ | 144 const base::Feature kTouchpadAndWheelScrollLatching{ |
| 149 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; | 145 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 150 | 146 |
| 151 // Weak MemoryCache (https://crbug.com/603462). | |
| 152 const base::Feature kWeakMemoryCache{"WeakMemoryCache", | |
| 153 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 154 | |
| 155 // If WebGL Image Chromium is allowed, this feature controls whether it is | 147 // If WebGL Image Chromium is allowed, this feature controls whether it is |
| 156 // enabled. | 148 // enabled. |
| 157 const base::Feature kWebGLImageChromium{"WebGLImageChromium", | 149 const base::Feature kWebGLImageChromium{"WebGLImageChromium", |
| 158 base::FEATURE_ENABLED_BY_DEFAULT}; | 150 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 159 | 151 |
| 160 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 152 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
| 161 // specified in JS). | 153 // specified in JS). |
| 162 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 154 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
| 163 base::FEATURE_ENABLED_BY_DEFAULT}; | 155 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 164 | 156 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 192 #endif | 184 #endif |
| 193 | 185 |
| 194 #if defined(OS_WIN) | 186 #if defined(OS_WIN) |
| 195 // Emergency "off switch" for new Windows sandbox security mitigation, | 187 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 196 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 188 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 197 const base::Feature kWinSboxDisableExtensionPoints{ | 189 const base::Feature kWinSboxDisableExtensionPoints{ |
| 198 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 190 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 199 #endif | 191 #endif |
| 200 | 192 |
| 201 } // namespace features | 193 } // namespace features |
| OLD | NEW |