Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "third_party/blink/public/common/features.h" |
| 6 | |
| 7 | namespace blink { |
| 8 | namespace features { |
| 9 | |
Matt Falkenhagen | c25fea4 | 2018-07-17 07:13:52 | [diff] [blame] | 10 | // Enable eagerly setting up a CacheStorage interface pointer and |
| 11 | // passing it to service workers on startup as an optimization. |
| 12 | const base::Feature kEagerCacheStorageSetupForServiceWorkers{ |
| 13 | "EagerCacheStorageSetupForServiceWorkers", |
| 14 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 15 | |
Ian Kilpatrick | e68ef11a | 2018-07-04 03:52:10 | [diff] [blame] | 16 | // Enable LayoutNG. |
| 17 | const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 18 | |
Marijn Kruisselbrink | cde6463 | 2018-06-22 22:45:16 | [diff] [blame] | 19 | // Enable mojo Blob URL interface and better blob URL lifetime management. |
| 20 | // Can be enabled independently of NetworkService. |
| 21 | const base::Feature kMojoBlobURLs{"MojoBlobURLs", |
| 22 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 23 | |
Nate Chapin | 304237d | 2018-07-18 21:41:10 | [diff] [blame] | 24 | // Nested workers. See https://crbug.com/31666 |
| 25 | const base::Feature kNestedWorkers{"NestedWorkers", |
| 26 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 27 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 28 | // Enable new service worker glue for NetworkService. Can be |
| 29 | // enabled independently of NetworkService. |
| 30 | const base::Feature kServiceWorkerServicification{ |
| 31 | "ServiceWorkerServicification", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 32 | |
Lu Chen | b1b31c0 | 2018-07-24 19:21:10 | [diff] [blame] | 33 | // Used to control the collection of anchor element metrics (crbug.com/856683). |
| 34 | // If kRecordAnchorMetricsClicked is enabled, then metrics of anchor elements |
| 35 | // clicked by the user will be extracted and recorded. |
| 36 | // If kRecordAnchorMetricsVisible is enabled, then metrics of anchor elements |
| 37 | // in the first viewport after the page load will be extracted and recorded. |
| 38 | const base::Feature kRecordAnchorMetricsClicked{ |
| 39 | "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 40 | const base::Feature kRecordAnchorMetricsVisible{ |
| 41 | "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 42 | |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 43 | // Enable Portals. https://crbug.com/865123. |
| 44 | const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 45 | |
Scott Haseley | 7757f6c | 2018-08-03 14:33:23 | [diff] [blame^] | 46 | // Stop non-timer task queues in background, after allowed grace time. Launch |
| 47 | // bug: https://crbug.com/822954. |
| 48 | const base::Feature kStopNonTimersInBackground{ |
| 49 | "stop-non-timers-in-background", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 50 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 51 | } // namespace features |
| 52 | } // namespace blink |