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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 135 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
136 // specified in JS). | 136 // specified in JS). |
137 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 137 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
138 base::FEATURE_ENABLED_BY_DEFAULT}; | 138 base::FEATURE_ENABLED_BY_DEFAULT}; |
139 | 139 |
140 // Controls whether the WebUSB API is enabled: | 140 // Controls whether the WebUSB API is enabled: |
141 // https://wicg.github.io/webusb | 141 // https://wicg.github.io/webusb |
142 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; | 142 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; |
143 | 143 |
| 144 // Make sendBeacon throw for a Blob with a non simple type. |
| 145 const base::Feature kSendBeaconThrowForBlobWithNonSimpleType{ |
| 146 "SendBeaconThrowForBlobWithNonSimpleType", |
| 147 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 148 |
144 #if defined(OS_ANDROID) | 149 #if defined(OS_ANDROID) |
145 // Allow videos to autoplay without a user gesture if muted. | 150 // Allow videos to autoplay without a user gesture if muted. |
146 const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos", | 151 const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos", |
147 base::FEATURE_ENABLED_BY_DEFAULT}; | 152 base::FEATURE_ENABLED_BY_DEFAULT}; |
148 | 153 |
149 // Use IME's own thread instead of using main UI thread. It also means that | 154 // Use IME's own thread instead of using main UI thread. It also means that |
150 // we will not use replica editor and do a round trip to renderer to synchronize | 155 // we will not use replica editor and do a round trip to renderer to synchronize |
151 // with Blink data. | 156 // with Blink data. |
152 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; | 157 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; |
153 | 158 |
154 // FeatureList definition for the Seccomp field trial. | 159 // FeatureList definition for the Seccomp field trial. |
155 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", | 160 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", |
156 base::FEATURE_DISABLED_BY_DEFAULT}; | 161 base::FEATURE_DISABLED_BY_DEFAULT}; |
157 | 162 |
158 // The JavaScript API for payments on the web. | 163 // The JavaScript API for payments on the web. |
159 const base::Feature kWebPayments{"WebPayments", | 164 const base::Feature kWebPayments{"WebPayments", |
160 base::FEATURE_ENABLED_BY_DEFAULT}; | 165 base::FEATURE_ENABLED_BY_DEFAULT}; |
161 | 166 |
162 #endif | 167 #endif |
163 | 168 |
164 #if defined(OS_WIN) | 169 #if defined(OS_WIN) |
165 // Emergency "off switch" for new Windows sandbox security mitigation, | 170 // Emergency "off switch" for new Windows sandbox security mitigation, |
166 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 171 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
167 const base::Feature kWinSboxDisableExtensionPoints{ | 172 const base::Feature kWinSboxDisableExtensionPoints{ |
168 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 173 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
169 #endif | 174 #endif |
170 | 175 |
171 } // namespace features | 176 } // namespace features |
OLD | NEW |