Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: content/public/common/content_features.cc

Issue 2289183005: [WeakMemoryCache] Cleanup Field-Trial code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase error fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 134
139 // Enables token binding 135 // Enables token binding
140 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). 136 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt).
141 const base::Feature kTokenBinding{"token-binding", 137 const base::Feature kTokenBinding{"token-binding",
142 base::FEATURE_DISABLED_BY_DEFAULT}; 138 base::FEATURE_DISABLED_BY_DEFAULT};
143 139
144 // Enables touchpad and wheel scroll latching. 140 // Enables touchpad and wheel scroll latching.
145 const base::Feature kTouchpadAndWheelScrollLatching{ 141 const base::Feature kTouchpadAndWheelScrollLatching{
146 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; 142 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
147 143
148 // Weak MemoryCache (https://crbug.com/603462).
149 const base::Feature kWeakMemoryCache{"WeakMemoryCache",
150 base::FEATURE_DISABLED_BY_DEFAULT};
151
152 // If WebGL Image Chromium is allowed, this feature controls whether it is 144 // If WebGL Image Chromium is allowed, this feature controls whether it is
153 // enabled. 145 // enabled.
154 const base::Feature kWebGLImageChromium{"WebGLImageChromium", 146 const base::Feature kWebGLImageChromium{"WebGLImageChromium",
155 base::FEATURE_ENABLED_BY_DEFAULT}; 147 base::FEATURE_ENABLED_BY_DEFAULT};
156 148
157 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was 149 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was
158 // specified in JS). 150 // specified in JS).
159 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", 151 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa",
160 base::FEATURE_ENABLED_BY_DEFAULT}; 152 base::FEATURE_ENABLED_BY_DEFAULT};
161 153
(...skipping 27 matching lines...) Expand all
189 #endif 181 #endif
190 182
191 #if defined(OS_WIN) 183 #if defined(OS_WIN)
192 // Emergency "off switch" for new Windows sandbox security mitigation, 184 // Emergency "off switch" for new Windows sandbox security mitigation,
193 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 185 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
194 const base::Feature kWinSboxDisableExtensionPoints{ 186 const base::Feature kWinSboxDisableExtensionPoints{
195 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 187 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
196 #endif 188 #endif
197 189
198 } // namespace features 190 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698