| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Enables faster location.reload() to use a reload mode that revalidates only | 68 // Enables faster location.reload() to use a reload mode that revalidates only |
| 69 // main resource forcibly. https://crbug.com/670237. | 69 // main resource forcibly. https://crbug.com/670237. |
| 70 const base::Feature kFasterLocationReload{"FasterLocationReload", | 70 const base::Feature kFasterLocationReload{"FasterLocationReload", |
| 71 base::FEATURE_DISABLED_BY_DEFAULT}; | 71 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 72 | 72 |
| 73 // Enables the Feature Policy framework for granting and removing access to | 73 // Enables the Feature Policy framework for granting and removing access to |
| 74 // other features through HTTP headers. | 74 // other features through HTTP headers. |
| 75 const base::Feature kFeaturePolicy{"FeaturePolicy", | 75 const base::Feature kFeaturePolicy{"FeaturePolicy", |
| 76 base::FEATURE_DISABLED_BY_DEFAULT}; | 76 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 77 | 77 |
| 78 // Enable filtering of same-origin tiny plugins |
| 79 const base::Feature kFilterSameOriginTinyPlugin{ |
| 80 "FilterSameOriginTinyPlugins", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 81 |
| 78 // Enables a blink::FontCache optimization that reuses a font to serve different | 82 // Enables a blink::FontCache optimization that reuses a font to serve different |
| 79 // size of font. | 83 // size of font. |
| 80 const base::Feature kFontCacheScaling{"FontCacheScaling", | 84 const base::Feature kFontCacheScaling{"FontCacheScaling", |
| 81 base::FEATURE_DISABLED_BY_DEFAULT}; | 85 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 82 | 86 |
| 83 // Enables a security restriction on iframes navigating their top frame. | 87 // Enables a security restriction on iframes navigating their top frame. |
| 84 // When enabled, the navigation will only be permitted if the iframe is | 88 // When enabled, the navigation will only be permitted if the iframe is |
| 85 // same-origin to the top frame, or if a user gesture is being processed. | 89 // same-origin to the top frame, or if a user gesture is being processed. |
| 86 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ | 90 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ |
| 87 "FramebustingNeedsSameOriginOrUserGesture", | 91 "FramebustingNeedsSameOriginOrUserGesture", |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 #endif // !defined(OS_ANDROID) | 279 #endif // !defined(OS_ANDROID) |
| 276 | 280 |
| 277 #if defined(OS_WIN) | 281 #if defined(OS_WIN) |
| 278 // Emergency "off switch" for new Windows sandbox security mitigation, | 282 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 279 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 283 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 280 const base::Feature kWinSboxDisableExtensionPoints{ | 284 const base::Feature kWinSboxDisableExtensionPoints{ |
| 281 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 285 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 282 #endif | 286 #endif |
| 283 | 287 |
| 284 } // namespace features | 288 } // namespace features |
| OLD | NEW |