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 brotli "Accept-Encoding" advertising and "Content-Encoding" support. | 12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. |
13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli | 13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli |
14 const base::Feature kBrotliEncoding{"brotli-encoding", | 14 const base::Feature kBrotliEncoding{"brotli-encoding", |
15 base::FEATURE_ENABLED_BY_DEFAULT}; | 15 base::FEATURE_ENABLED_BY_DEFAULT}; |
16 | 16 |
| 17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is |
| 18 // enabled. |
| 19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", |
| 20 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 21 |
17 // Enables the credential management API: | 22 // Enables the credential management API: |
18 // https://w3c.github.io/webappsec-credential-management/ | 23 // https://w3c.github.io/webappsec-credential-management/ |
19 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 24 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
20 base::FEATURE_ENABLED_BY_DEFAULT}; | 25 base::FEATURE_ENABLED_BY_DEFAULT}; |
21 | 26 |
22 // Enable GPU Rasterization by default. This can still be overridden by | 27 // Enable GPU Rasterization by default. This can still be overridden by |
23 // --force-gpu-rasterization or --disable-gpu-rasterization. | 28 // --force-gpu-rasterization or --disable-gpu-rasterization. |
24 const base::Feature kDefaultEnableGpuRasterization{ | 29 const base::Feature kDefaultEnableGpuRasterization{ |
25 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 30 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
26 | 31 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 108 |
104 // Enables token binding | 109 // Enables token binding |
105 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). | 110 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). |
106 const base::Feature kTokenBinding{"token-binding", | 111 const base::Feature kTokenBinding{"token-binding", |
107 base::FEATURE_DISABLED_BY_DEFAULT}; | 112 base::FEATURE_DISABLED_BY_DEFAULT}; |
108 | 113 |
109 // Weak MemoryCache (https://crbug.com/603462). | 114 // Weak MemoryCache (https://crbug.com/603462). |
110 const base::Feature kWeakMemoryCache{"WeakMemoryCache", | 115 const base::Feature kWeakMemoryCache{"WeakMemoryCache", |
111 base::FEATURE_DISABLED_BY_DEFAULT}; | 116 base::FEATURE_DISABLED_BY_DEFAULT}; |
112 | 117 |
| 118 // If WebGL Image Chromium is allowed, this feature controls whether it is |
| 119 // enabled. |
| 120 const base::Feature kWebGLImageChromium{"WebGLImageChromium", |
| 121 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 122 |
113 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 123 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
114 // specified in JS). | 124 // specified in JS). |
115 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 125 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
116 base::FEATURE_ENABLED_BY_DEFAULT}; | 126 base::FEATURE_ENABLED_BY_DEFAULT}; |
117 | 127 |
118 // Controls whether the WebUSB API is enabled: | 128 // Controls whether the WebUSB API is enabled: |
119 // https://wicg.github.io/webusb | 129 // https://wicg.github.io/webusb |
120 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; | 130 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; |
121 | 131 |
122 #if defined(OS_ANDROID) | 132 #if defined(OS_ANDROID) |
123 // Use IME's own thread instead of using main UI thread. It also means that | 133 // Use IME's own thread instead of using main UI thread. It also means that |
124 // we will not use replica editor and do a round trip to renderer to synchronize | 134 // we will not use replica editor and do a round trip to renderer to synchronize |
125 // with Blink data. | 135 // with Blink data. |
126 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; | 136 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; |
127 | 137 |
128 // FeatureList definition for the Seccomp field trial. | 138 // FeatureList definition for the Seccomp field trial. |
129 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", | 139 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", |
130 base::FEATURE_DISABLED_BY_DEFAULT}; | 140 base::FEATURE_DISABLED_BY_DEFAULT}; |
131 #endif | 141 #endif |
132 | 142 |
133 #if defined(OS_WIN) | 143 #if defined(OS_WIN) |
134 // Emergency "off switch" for new Windows sandbox security mitigation, | 144 // Emergency "off switch" for new Windows sandbox security mitigation, |
135 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 145 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
136 const base::Feature kWinSboxDisableExtensionPoints{ | 146 const base::Feature kWinSboxDisableExtensionPoints{ |
137 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 147 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
138 #endif | 148 #endif |
139 | 149 |
140 } // namespace features | 150 } // namespace features |
OLD | NEW |