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 | |
Fabio Tirelo | 9b423c7b | 2018-08-15 14:32:18 | [diff] [blame^] | 10 | const base::Feature kAutofillPreviewStyleExperiment{ |
| 11 | "AutofillPreviewStyleExperiment", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 12 | |
Matt Falkenhagen | c25fea4 | 2018-07-17 07:13:52 | [diff] [blame] | 13 | // Enable eagerly setting up a CacheStorage interface pointer and |
| 14 | // passing it to service workers on startup as an optimization. |
| 15 | const base::Feature kEagerCacheStorageSetupForServiceWorkers{ |
| 16 | "EagerCacheStorageSetupForServiceWorkers", |
| 17 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 18 | |
Ian Kilpatrick | e68ef11a | 2018-07-04 03:52:10 | [diff] [blame] | 19 | // Enable LayoutNG. |
| 20 | const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 21 | |
Marijn Kruisselbrink | cde6463 | 2018-06-22 22:45:16 | [diff] [blame] | 22 | // Enable mojo Blob URL interface and better blob URL lifetime management. |
| 23 | // Can be enabled independently of NetworkService. |
| 24 | const base::Feature kMojoBlobURLs{"MojoBlobURLs", |
| 25 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 26 | |
Nate Chapin | 304237d | 2018-07-18 21:41:10 | [diff] [blame] | 27 | // Nested workers. See https://crbug.com/31666 |
| 28 | const base::Feature kNestedWorkers{"NestedWorkers", |
| 29 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 30 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 31 | // Enable new service worker glue for NetworkService. Can be |
| 32 | // enabled independently of NetworkService. |
| 33 | const base::Feature kServiceWorkerServicification{ |
| 34 | "ServiceWorkerServicification", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 35 | |
Lu Chen | b1b31c0 | 2018-07-24 19:21:10 | [diff] [blame] | 36 | // Used to control the collection of anchor element metrics (crbug.com/856683). |
| 37 | // If kRecordAnchorMetricsClicked is enabled, then metrics of anchor elements |
| 38 | // clicked by the user will be extracted and recorded. |
| 39 | // If kRecordAnchorMetricsVisible is enabled, then metrics of anchor elements |
| 40 | // in the first viewport after the page load will be extracted and recorded. |
| 41 | const base::Feature kRecordAnchorMetricsClicked{ |
| 42 | "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 43 | const base::Feature kRecordAnchorMetricsVisible{ |
| 44 | "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 45 | |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 46 | // Enable Portals. https://crbug.com/865123. |
| 47 | const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 48 | |
Scott Haseley | 7757f6c | 2018-08-03 14:33:23 | [diff] [blame] | 49 | // Stop non-timer task queues in background, after allowed grace time. Launch |
| 50 | // bug: https://crbug.com/822954. |
| 51 | const base::Feature kStopNonTimersInBackground{ |
| 52 | "stop-non-timers-in-background", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 53 | |
Fabio Tirelo | 9b423c7b | 2018-08-15 14:32:18 | [diff] [blame^] | 54 | const char kAutofillPreviewStyleExperimentBgColorParameterName[] = "bg_color"; |
| 55 | |
| 56 | const char kAutofillPreviewStyleExperimentColorParameterName[] = "color"; |
| 57 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 58 | } // namespace features |
| 59 | } // namespace blink |