| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Enables a blink::FontCache optimization that reuses a font to serve different | 64 // Enables a blink::FontCache optimization that reuses a font to serve different |
| 65 // size of font. | 65 // size of font. |
| 66 const base::Feature kFontCacheScaling{"FontCacheScaling", | 66 const base::Feature kFontCacheScaling{"FontCacheScaling", |
| 67 base::FEATURE_DISABLED_BY_DEFAULT}; | 67 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 68 | 68 |
| 69 // Enables a security restriction on iframes navigating their top frame. | 69 // Enables a security restriction on iframes navigating their top frame. |
| 70 // When enabled, the navigation will only be permitted if the iframe is | 70 // When enabled, the navigation will only be permitted if the iframe is |
| 71 // same-origin to the top frame, or if a user gesture is being processed. | 71 // same-origin to the top frame, or if a user gesture is being processed. |
| 72 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ | 72 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{ |
| 73 "FramebustingNeedsSameOriginOrUserGesture", | 73 "FramebustingNeedsSameOriginOrUserGesture", |
| 74 base::FEATURE_DISABLED_BY_DEFAULT}; | 74 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 75 | 75 |
| 76 // Enables extended Gamepad API features like motion tracking and haptics. | 76 // Enables extended Gamepad API features like motion tracking and haptics. |
| 77 const base::Feature kGamepadExtensions{"GamepadExtensions", | 77 const base::Feature kGamepadExtensions{"GamepadExtensions", |
| 78 base::FEATURE_DISABLED_BY_DEFAULT}; | 78 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 79 | 79 |
| 80 // Enables sensors based on Generic Sensor API: | 80 // Enables sensors based on Generic Sensor API: |
| 81 // https://w3c.github.io/sensors/ | 81 // https://w3c.github.io/sensors/ |
| 82 const base::Feature kGenericSensor{"GenericSensor", | 82 const base::Feature kGenericSensor{"GenericSensor", |
| 83 base::FEATURE_DISABLED_BY_DEFAULT}; | 83 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 84 | 84 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 #endif | 246 #endif |
| 247 | 247 |
| 248 #if defined(OS_WIN) | 248 #if defined(OS_WIN) |
| 249 // Emergency "off switch" for new Windows sandbox security mitigation, | 249 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 250 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 250 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 251 const base::Feature kWinSboxDisableExtensionPoints{ | 251 const base::Feature kWinSboxDisableExtensionPoints{ |
| 252 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 252 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 253 #endif | 253 #endif |
| 254 | 254 |
| 255 } // namespace features | 255 } // namespace features |
| OLD | NEW |