| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // which permits servers to allow the use of stale resources while revalidation | 104 // which permits servers to allow the use of stale resources while revalidation |
| 101 // proceeds in the background. See http://crbug.com/348877 | 105 // proceeds in the background. See http://crbug.com/348877 |
| 102 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", | 106 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", |
| 103 base::FEATURE_DISABLED_BY_DEFAULT}; | 107 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 104 | 108 |
| 105 // Enables token binding | 109 // Enables token binding |
| 106 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). | 110 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). |
| 107 const base::Feature kTokenBinding{"token-binding", | 111 const base::Feature kTokenBinding{"token-binding", |
| 108 base::FEATURE_DISABLED_BY_DEFAULT}; | 112 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 109 | 113 |
| 114 // Weak MemoryCache (https://crbug.com/603462). |
| 115 const base::Feature kWeakMemoryCache{"WeakMemoryCache", |
| 116 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 117 |
| 110 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was | 118 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was |
| 111 // specified in JS). | 119 // specified in JS). |
| 112 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", | 120 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", |
| 113 base::FEATURE_ENABLED_BY_DEFAULT}; | 121 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 114 | 122 |
| 115 // Controls whether the WebUSB API is enabled: | 123 // Controls whether the WebUSB API is enabled: |
| 116 // https://wicg.github.io/webusb | 124 // https://wicg.github.io/webusb |
| 117 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; | 125 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 118 | 126 |
| 119 #if defined(OS_ANDROID) | 127 #if defined(OS_ANDROID) |
| 120 // Use IME's own thread instead of using main UI thread. It also means that | 128 // Use IME's own thread instead of using main UI thread. It also means that |
| 121 // we will not use replica editor and do a round trip to renderer to synchronize | 129 // we will not use replica editor and do a round trip to renderer to synchronize |
| 122 // with Blink data. | 130 // with Blink data. |
| 123 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; | 131 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 124 | 132 |
| 125 // FeatureList definition for the Seccomp field trial. | 133 // FeatureList definition for the Seccomp field trial. |
| 126 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", | 134 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", |
| 127 base::FEATURE_DISABLED_BY_DEFAULT}; | 135 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 128 #endif | 136 #endif |
| 129 | 137 |
| 130 } // namespace features | 138 } // namespace features |
| OLD | NEW |