Chromium Code Reviews| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 182 |
| 183 // Throttle Blink's rendering pipeline based on frame visibility. | 183 // Throttle Blink's rendering pipeline based on frame visibility. |
| 184 const base::Feature kRenderingPipelineThrottling{ | 184 const base::Feature kRenderingPipelineThrottling{ |
| 185 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 185 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 186 | 186 |
| 187 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). | 187 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). |
| 188 const base::Feature kScrollAnchoring{"ScrollAnchoring", | 188 const base::Feature kScrollAnchoring{"ScrollAnchoring", |
| 189 base::FEATURE_ENABLED_BY_DEFAULT}; | 189 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 190 | 190 |
| 191 // Navigation preload feature of service workers. | 191 // Navigation preload feature of service workers. |
| 192 // TODO(horo): Revise link when this lands in the spec: | 192 // We enable this base::Feature by default for Origin-Trial. But in |
| 193 // https://github.com/w3c/ServiceWorker/pull/983/files | 193 // runtime_features.cc, we enable the blink::WebRuntimeFeatures only when it is |
| 194 // enabled by "--enable-features" command line flag. See the comments in | |
| 195 // runtime_features.cc and service_worker_version.h for the details. | |
|
kinuko
2017/01/16 05:07:10
nit: avoid using 'we' in general, e.g. 'Enables th
horo
2017/01/16 05:30:36
Done.
| |
| 194 const base::Feature kServiceWorkerNavigationPreload{ | 196 const base::Feature kServiceWorkerNavigationPreload{ |
| 195 "ServiceWorkerNavigationPreload", base::FEATURE_DISABLED_BY_DEFAULT}; | 197 "ServiceWorkerNavigationPreload", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 196 | 198 |
| 197 // http://tc39.github.io/ecmascript_sharedmem/shmem.html | 199 // http://tc39.github.io/ecmascript_sharedmem/shmem.html |
| 198 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer", | 200 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer", |
| 199 base::FEATURE_DISABLED_BY_DEFAULT}; | 201 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 200 | 202 |
| 201 // Speculatively launches Service Workers on mouse/touch events. | 203 // Speculatively launches Service Workers on mouse/touch events. |
| 202 const base::Feature kSpeculativeLaunchServiceWorker{ | 204 const base::Feature kSpeculativeLaunchServiceWorker{ |
| 203 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT}; | 205 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 204 | 206 |
| 205 // Enables implementation of the Cache-Control: stale-while-revalidate directive | 207 // Enables implementation of the Cache-Control: stale-while-revalidate directive |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 #endif // !defined(OS_ANDROID) | 285 #endif // !defined(OS_ANDROID) |
| 284 | 286 |
| 285 #if defined(OS_WIN) | 287 #if defined(OS_WIN) |
| 286 // Emergency "off switch" for new Windows sandbox security mitigation, | 288 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 287 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 289 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 288 const base::Feature kWinSboxDisableExtensionPoints{ | 290 const base::Feature kWinSboxDisableExtensionPoints{ |
| 289 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 291 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 290 #endif | 292 #endif |
| 291 | 293 |
| 292 } // namespace features | 294 } // namespace features |
| OLD | NEW |