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 // Enables the credential management API: | 17 // Enables the credential management API: |
18 // https://w3c.github.io/webappsec-credential-management/ | 18 // https://w3c.github.io/webappsec-credential-management/ |
19 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", | 19 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", |
20 base::FEATURE_ENABLED_BY_DEFAULT}; | 20 base::FEATURE_ENABLED_BY_DEFAULT}; |
21 | 21 |
22 // Enable GPU Rasterization by default. This can still be overridden by | 22 // Enable GPU Rasterization by default. This can still be overridden by |
23 // --force-gpu-rasterization or --disable-gpu-rasterization. | 23 // --force-gpu-rasterization or --disable-gpu-rasterization. |
24 const base::Feature kDefaultEnableGpuRasterization{ | 24 const base::Feature kDefaultEnableGpuRasterization{ |
25 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; | 25 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; |
26 | 26 |
| 27 // Do not call SharedBuffer::unlock() (https://crbug.com/603791). |
| 28 const base::Feature kDoNotUnlockSharedBuffer{"DoNotUnlockSharedBuffer", |
| 29 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 30 |
27 // Downloads resumption will be controllable via a flag until it's enabled | 31 // Downloads resumption will be controllable via a flag until it's enabled |
28 // permanently. See https://crbug.com/7648 | 32 // permanently. See https://crbug.com/7648 |
29 const base::Feature kDownloadResumption{"DownloadResumption", | 33 const base::Feature kDownloadResumption{"DownloadResumption", |
30 base::FEATURE_ENABLED_BY_DEFAULT}; | 34 base::FEATURE_ENABLED_BY_DEFAULT}; |
31 | 35 |
32 // Speculatively pre-evaluate Javascript which will likely use document.write to | 36 // Speculatively pre-evaluate Javascript which will likely use document.write to |
33 // load an external script. The feature extracts the written markup and sends it | 37 // load an external script. The feature extracts the written markup and sends it |
34 // to the preload scanner. | 38 // to the preload scanner. |
35 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 39 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
36 base::FEATURE_DISABLED_BY_DEFAULT}; | 40 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // which permits servers to allow the use of stale resources while revalidation | 100 // which permits servers to allow the use of stale resources while revalidation |
97 // proceeds in the background. See http://crbug.com/348877 | 101 // proceeds in the background. See http://crbug.com/348877 |
98 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", | 102 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", |
99 base::FEATURE_DISABLED_BY_DEFAULT}; | 103 base::FEATURE_DISABLED_BY_DEFAULT}; |
100 | 104 |
101 // Enables token binding | 105 // Enables token binding |
102 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). | 106 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). |
103 const base::Feature kTokenBinding{"token-binding", | 107 const base::Feature kTokenBinding{"token-binding", |
104 base::FEATURE_DISABLED_BY_DEFAULT}; | 108 base::FEATURE_DISABLED_BY_DEFAULT}; |
105 | 109 |
| 110 // Weak MemoryCache (https://crbug.com/603462). |
| 111 const base::Feature kWeakMemoryCache{"WeakMemoryCache", |
| 112 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 113 |
106 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 114 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
107 // specified in JS). | 115 // specified in JS). |
108 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 116 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
109 base::FEATURE_ENABLED_BY_DEFAULT}; | 117 base::FEATURE_ENABLED_BY_DEFAULT}; |
110 | 118 |
111 // Controls whether the WebUSB API is enabled: | 119 // Controls whether the WebUSB API is enabled: |
112 // https://wicg.github.io/webusb | 120 // https://wicg.github.io/webusb |
113 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; | 121 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; |
114 | 122 |
115 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
116 // Use IME's own thread instead of using main UI thread. It also means that | 124 // Use IME's own thread instead of using main UI thread. It also means that |
117 // we will not use replica editor and do a round trip to renderer to synchronize | 125 // we will not use replica editor and do a round trip to renderer to synchronize |
118 // with Blink data. | 126 // with Blink data. |
119 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; | 127 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; |
120 | 128 |
121 // FeatureList definition for the Seccomp field trial. | 129 // FeatureList definition for the Seccomp field trial. |
122 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", | 130 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", |
123 base::FEATURE_DISABLED_BY_DEFAULT}; | 131 base::FEATURE_DISABLED_BY_DEFAULT}; |
124 #endif | 132 #endif |
125 | 133 |
126 } // namespace features | 134 } // namespace features |
OLD | NEW |