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

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

Issue 2400823002: [asm.js] [wasm] Move asm->wasm + WebAssembly switches to features. (Closed)
Patch Set: fix Created 4 years, 2 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
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
11 11
12 // Enables asm.js to WebAssembly V8 backend.
13 // http://asmjs.org/spec/latest/
14 const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly",
15 base::FEATURE_DISABLED_BY_DEFAULT};
16
12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. 17 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support.
13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli 18 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli
14 const base::Feature kBrotliEncoding{"brotli-encoding", 19 const base::Feature kBrotliEncoding{"brotli-encoding",
15 base::FEATURE_ENABLED_BY_DEFAULT}; 20 base::FEATURE_ENABLED_BY_DEFAULT};
16 21
17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is 22 // If Canvas2D Image Chromium is allowed, this feature controls whether it is
18 // enabled. 23 // enabled.
19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", 24 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium",
20 base::FEATURE_ENABLED_BY_DEFAULT}; 25 base::FEATURE_ENABLED_BY_DEFAULT};
21 26
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 167
163 // Enables token binding 168 // Enables token binding
164 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt). 169 // (https://www.ietf.org/id/draft-ietf-tokbind-protocol-04.txt).
165 const base::Feature kTokenBinding{"token-binding", 170 const base::Feature kTokenBinding{"token-binding",
166 base::FEATURE_DISABLED_BY_DEFAULT}; 171 base::FEATURE_DISABLED_BY_DEFAULT};
167 172
168 // Enables touchpad and wheel scroll latching. 173 // Enables touchpad and wheel scroll latching.
169 const base::Feature kTouchpadAndWheelScrollLatching{ 174 const base::Feature kTouchpadAndWheelScrollLatching{
170 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; 175 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
171 176
177 // Enable WebAssembly.
178 // http://webassembly.org/
179 const base::Feature kWebAssembly{"WebAssembly",
180 base::FEATURE_DISABLED_BY_DEFAULT};
181
172 // If WebGL Image Chromium is allowed, this feature controls whether it is 182 // If WebGL Image Chromium is allowed, this feature controls whether it is
173 // enabled. 183 // enabled.
174 const base::Feature kWebGLImageChromium{"WebGLImageChromium", 184 const base::Feature kWebGLImageChromium{"WebGLImageChromium",
175 base::FEATURE_ENABLED_BY_DEFAULT}; 185 base::FEATURE_ENABLED_BY_DEFAULT};
176 186
177 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was 187 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was
178 // specified in JS). 188 // specified in JS).
179 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", 189 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa",
180 base::FEATURE_ENABLED_BY_DEFAULT}; 190 base::FEATURE_ENABLED_BY_DEFAULT};
181 191
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 224 #endif
215 225
216 #if defined(OS_WIN) 226 #if defined(OS_WIN)
217 // Emergency "off switch" for new Windows sandbox security mitigation, 227 // Emergency "off switch" for new Windows sandbox security mitigation,
218 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 228 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
219 const base::Feature kWinSboxDisableExtensionPoints{ 229 const base::Feature kWinSboxDisableExtensionPoints{
220 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 230 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
221 #endif 231 #endif
222 232
223 } // namespace features 233 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698