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 21 matching lines...) Expand all Loading... |
32 // Do not call SharedBuffer::unlock() (https://crbug.com/603791). | 32 // Do not call SharedBuffer::unlock() (https://crbug.com/603791). |
33 const base::Feature kDoNotUnlockSharedBuffer{"DoNotUnlockSharedBuffer", | 33 const base::Feature kDoNotUnlockSharedBuffer{"DoNotUnlockSharedBuffer", |
34 base::FEATURE_DISABLED_BY_DEFAULT}; | 34 base::FEATURE_DISABLED_BY_DEFAULT}; |
35 | 35 |
36 // Speculatively pre-evaluate Javascript which will likely use document.write to | 36 // 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 | 37 // load an external script. The feature extracts the written markup and sends it |
38 // to the preload scanner. | 38 // to the preload scanner. |
39 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", | 39 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", |
40 base::FEATURE_DISABLED_BY_DEFAULT}; | 40 base::FEATURE_DISABLED_BY_DEFAULT}; |
41 | 41 |
| 42 // Enables the Feature Policy framework for granting and removing access to |
| 43 // other features through HTTP headers. |
| 44 const base::Feature kFeaturePolicy{"FeaturePolicy", |
| 45 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 46 |
42 // Enables a blink::FontCache optimization that reuses a font to serve different | 47 // Enables a blink::FontCache optimization that reuses a font to serve different |
43 // size of font. | 48 // size of font. |
44 const base::Feature kFontCacheScaling{"FontCacheScaling", | 49 const base::Feature kFontCacheScaling{"FontCacheScaling", |
45 base::FEATURE_DISABLED_BY_DEFAULT}; | 50 base::FEATURE_DISABLED_BY_DEFAULT}; |
46 | 51 |
47 // Can main thread be pipelined with activation. Always disabled for devices | 52 // Can main thread be pipelined with activation. Always disabled for devices |
48 // with fewer than 4 cores irrespective of this flag. Can also be overridden by | 53 // with fewer than 4 cores irrespective of this flag. Can also be overridden by |
49 // --enable(disable)-main-frame-before-activation command line flag. | 54 // --enable(disable)-main-frame-before-activation command line flag. |
50 const base::Feature kMainFrameBeforeActivation{ | 55 const base::Feature kMainFrameBeforeActivation{ |
51 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT}; | 56 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 #endif | 185 #endif |
181 | 186 |
182 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
183 // Emergency "off switch" for new Windows sandbox security mitigation, | 188 // Emergency "off switch" for new Windows sandbox security mitigation, |
184 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 189 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
185 const base::Feature kWinSboxDisableExtensionPoints{ | 190 const base::Feature kWinSboxDisableExtensionPoints{ |
186 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 191 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
187 #endif | 192 #endif |
188 | 193 |
189 } // namespace features | 194 } // namespace features |
OLD | NEW |