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. |
(...skipping 17 matching lines...) Expand all Loading... | |
28 // permanently. See https://crbug.com/7648 | 28 // permanently. See https://crbug.com/7648 |
29 const base::Feature kDownloadResumption{"DownloadResumption", | 29 const base::Feature kDownloadResumption{"DownloadResumption", |
30 base::FEATURE_ENABLED_BY_DEFAULT}; | 30 base::FEATURE_ENABLED_BY_DEFAULT}; |
31 | 31 |
32 // Speculatively pre-evaluate Javascript which will likely use document.write to | 32 // 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 | 33 // load an external script. The feature extracts the written markup and sends it |
34 // to the preload scanner. | 34 // to the preload scanner. |
35 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 35 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
36 base::FEATURE_DISABLED_BY_DEFAULT}; | 36 base::FEATURE_DISABLED_BY_DEFAULT}; |
37 | 37 |
38 // Enables a blink::FontCache optimization that reuses a font to serve different | |
39 // size of font. | |
kinuko
2016/05/19 14:36:02
nit: a font -> a cached font ?
nit: different size
| |
40 const base::Feature kFontCacheScaling{"FontCacheScaling", | |
41 base::FEATURE_DISABLED_BY_DEFAULT}; | |
42 | |
38 // Can main thread be pipelined with activation. Always disabled for devices | 43 // Can main thread be pipelined with activation. Always disabled for devices |
39 // with fewer than 4 cores irrespective of this flag. Can also be overridden by | 44 // with fewer than 4 cores irrespective of this flag. Can also be overridden by |
40 // --enable(disable)-main-frame-before-activation command line flag. | 45 // --enable(disable)-main-frame-before-activation command line flag. |
41 const base::Feature kMainFrameBeforeActivation{ | 46 const base::Feature kMainFrameBeforeActivation{ |
42 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT}; | 47 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT}; |
43 | 48 |
44 // FeatureList definition for trials to enable the download button on | 49 // FeatureList definition for trials to enable the download button on |
45 // MediaDocument. | 50 // MediaDocument. |
46 const base::Feature kMediaDocumentDownloadButton{ | 51 const base::Feature kMediaDocumentDownloadButton{ |
47 "MediaDocumentDownloadButton", | 52 "MediaDocumentDownloadButton", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 // we will not use replica editor and do a round trip to renderer to synchronize | 121 // we will not use replica editor and do a round trip to renderer to synchronize |
117 // with Blink data. | 122 // with Blink data. |
118 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; | 123 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; |
119 | 124 |
120 // FeatureList definition for the Seccomp field trial. | 125 // FeatureList definition for the Seccomp field trial. |
121 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", | 126 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", |
122 base::FEATURE_DISABLED_BY_DEFAULT}; | 127 base::FEATURE_DISABLED_BY_DEFAULT}; |
123 #endif | 128 #endif |
124 | 129 |
125 } // namespace features | 130 } // namespace features |
OLD | NEW |