| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // corresponding blink::WebRuntimeFeatures only when '--enable-features' command | 199 // corresponding blink::WebRuntimeFeatures only when '--enable-features' command |
| 200 // line flag is given. See the comments in runtime_features.cc and | 200 // line flag is given. See the comments in runtime_features.cc and |
| 201 // service_worker_version.h for the details. | 201 // service_worker_version.h for the details. |
| 202 const base::Feature kServiceWorkerNavigationPreload{ | 202 const base::Feature kServiceWorkerNavigationPreload{ |
| 203 "ServiceWorkerNavigationPreload", base::FEATURE_ENABLED_BY_DEFAULT}; | 203 "ServiceWorkerNavigationPreload", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 204 | 204 |
| 205 // http://tc39.github.io/ecmascript_sharedmem/shmem.html | 205 // http://tc39.github.io/ecmascript_sharedmem/shmem.html |
| 206 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer", | 206 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer", |
| 207 base::FEATURE_DISABLED_BY_DEFAULT}; | 207 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 208 | 208 |
| 209 // Paint invalidation based on slimming paint. See https://goo.gl/eQczQW |
| 210 const base::Feature kSlimmingPaintInvalidation{ |
| 211 "SlimmingPaintInvalidation", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 212 |
| 209 // Speculatively launches Service Workers on mouse/touch events. | 213 // Speculatively launches Service Workers on mouse/touch events. |
| 210 const base::Feature kSpeculativeLaunchServiceWorker{ | 214 const base::Feature kSpeculativeLaunchServiceWorker{ |
| 211 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT}; | 215 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 212 | 216 |
| 213 // Enables implementation of the Cache-Control: stale-while-revalidate directive | 217 // Enables implementation of the Cache-Control: stale-while-revalidate directive |
| 214 // which permits servers to allow the use of stale resources while revalidation | 218 // which permits servers to allow the use of stale resources while revalidation |
| 215 // proceeds in the background. See http://crbug.com/348877 | 219 // proceeds in the background. See http://crbug.com/348877 |
| 216 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", | 220 const base::Feature kStaleWhileRevalidate{"StaleWhileRevalidate2", |
| 217 base::FEATURE_DISABLED_BY_DEFAULT}; | 221 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 218 | 222 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 #endif // !defined(OS_ANDROID) | 295 #endif // !defined(OS_ANDROID) |
| 292 | 296 |
| 293 #if defined(OS_WIN) | 297 #if defined(OS_WIN) |
| 294 // Emergency "off switch" for new Windows sandbox security mitigation, | 298 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 295 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 299 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 296 const base::Feature kWinSboxDisableExtensionPoints{ | 300 const base::Feature kWinSboxDisableExtensionPoints{ |
| 297 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 301 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 298 #endif | 302 #endif |
| 299 | 303 |
| 300 } // namespace features | 304 } // namespace features |
| OLD | NEW |