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 27 matching lines...) Expand all Loading... |
38 // Enables the Feature Policy framework for granting and removing access to | 38 // Enables the Feature Policy framework for granting and removing access to |
39 // other features through HTTP headers. | 39 // other features through HTTP headers. |
40 const base::Feature kFeaturePolicy{"FeaturePolicy", | 40 const base::Feature kFeaturePolicy{"FeaturePolicy", |
41 base::FEATURE_DISABLED_BY_DEFAULT}; | 41 base::FEATURE_DISABLED_BY_DEFAULT}; |
42 | 42 |
43 // Enables a blink::FontCache optimization that reuses a font to serve different | 43 // Enables a blink::FontCache optimization that reuses a font to serve different |
44 // size of font. | 44 // size of font. |
45 const base::Feature kFontCacheScaling{"FontCacheScaling", | 45 const base::Feature kFontCacheScaling{"FontCacheScaling", |
46 base::FEATURE_DISABLED_BY_DEFAULT}; | 46 base::FEATURE_DISABLED_BY_DEFAULT}; |
47 | 47 |
| 48 // Enables a security restriction on iframes navigating their top frame. |
| 49 // When enabled, the navigation will only be permitted if the iframe is |
| 50 // same-origin to the top frame, or if a user gesture is being processed. |
| 51 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ |
| 52 "FramebustingNeedsSameOriginOrUserGesture", |
| 53 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 54 |
48 // Enables extended Gamepad API features like motion tracking and haptics. | 55 // Enables extended Gamepad API features like motion tracking and haptics. |
49 const base::Feature kGamepadExtensions{"GamepadExtensions", | 56 const base::Feature kGamepadExtensions{"GamepadExtensions", |
50 base::FEATURE_DISABLED_BY_DEFAULT}; | 57 base::FEATURE_DISABLED_BY_DEFAULT}; |
51 | 58 |
52 // FeatureList definition for trials to enable the download button on | 59 // FeatureList definition for trials to enable the download button on |
53 // MediaDocument. | 60 // MediaDocument. |
54 const base::Feature kMediaDocumentDownloadButton{ | 61 const base::Feature kMediaDocumentDownloadButton{ |
55 "MediaDocumentDownloadButton", | 62 "MediaDocumentDownloadButton", |
56 base::FEATURE_DISABLED_BY_DEFAULT | 63 base::FEATURE_DISABLED_BY_DEFAULT |
57 }; | 64 }; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 #endif | 191 #endif |
185 | 192 |
186 #if defined(OS_WIN) | 193 #if defined(OS_WIN) |
187 // Emergency "off switch" for new Windows sandbox security mitigation, | 194 // Emergency "off switch" for new Windows sandbox security mitigation, |
188 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 195 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
189 const base::Feature kWinSboxDisableExtensionPoints{ | 196 const base::Feature kWinSboxDisableExtensionPoints{ |
190 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 197 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
191 #endif | 198 #endif |
192 | 199 |
193 } // namespace features | 200 } // namespace features |
OLD | NEW |