| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Enables a blink::FontCache optimization that reuses a font to serve different | 58 // Enables a blink::FontCache optimization that reuses a font to serve different |
| 59 // size of font. | 59 // size of font. |
| 60 const base::Feature kFontCacheScaling{"FontCacheScaling", | 60 const base::Feature kFontCacheScaling{"FontCacheScaling", |
| 61 base::FEATURE_DISABLED_BY_DEFAULT}; | 61 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 62 | 62 |
| 63 // Enables a security restriction on iframes navigating their top frame. | 63 // Enables a security restriction on iframes navigating their top frame. |
| 64 // When enabled, the navigation will only be permitted if the iframe is | 64 // When enabled, the navigation will only be permitted if the iframe is |
| 65 // same-origin to the top frame, or if a user gesture is being processed. | 65 // same-origin to the top frame, or if a user gesture is being processed. |
| 66 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ | 66 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ |
| 67 "FramebustingNeedsSameOriginOrUserGesture", | 67 "FramebustingNeedsSameOriginOrUserGesture", |
| 68 base::FEATURE_ENABLED_BY_DEFAULT}; | 68 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 69 | 69 |
| 70 // Enables extended Gamepad API features like motion tracking and haptics. | 70 // Enables extended Gamepad API features like motion tracking and haptics. |
| 71 const base::Feature kGamepadExtensions{"GamepadExtensions", | 71 const base::Feature kGamepadExtensions{"GamepadExtensions", |
| 72 base::FEATURE_DISABLED_BY_DEFAULT}; | 72 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 73 | 73 |
| 74 // Enables sensors based on Generic Sensor API: | 74 // Enables sensors based on Generic Sensor API: |
| 75 // https://w3c.github.io/sensors/ | 75 // https://w3c.github.io/sensors/ |
| 76 const base::Feature kGenericSensor{"GenericSensor", | 76 const base::Feature kGenericSensor{"GenericSensor", |
| 77 base::FEATURE_DISABLED_BY_DEFAULT}; | 77 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 78 | 78 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 #endif | 234 #endif |
| 235 | 235 |
| 236 #if defined(OS_WIN) | 236 #if defined(OS_WIN) |
| 237 // Emergency "off switch" for new Windows sandbox security mitigation, | 237 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 238 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 238 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 239 const base::Feature kWinSboxDisableExtensionPoints{ | 239 const base::Feature kWinSboxDisableExtensionPoints{ |
| 240 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 240 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 241 #endif | 241 #endif |
| 242 | 242 |
| 243 } // namespace features | 243 } // namespace features |
| OLD | NEW |