blob: 48b48ca72e77950f2321ec442faf40ade8c74da3 [file] [log] [blame]
Matt Falkenhagen5cc652792018-06-21 10:34:331// 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
7namespace blink {
8namespace features {
9
Fabio Tirelo9b423c7b2018-08-15 14:32:1810const base::Feature kAutofillPreviewStyleExperiment{
11 "AutofillPreviewStyleExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
12
Matt Falkenhagenc25fea42018-07-17 07:13:5213// Enable eagerly setting up a CacheStorage interface pointer and
14// passing it to service workers on startup as an optimization.
15const base::Feature kEagerCacheStorageSetupForServiceWorkers{
16 "EagerCacheStorageSetupForServiceWorkers",
17 base::FEATURE_ENABLED_BY_DEFAULT};
18
Ian Kilpatricke68ef11a2018-07-04 03:52:1019// Enable LayoutNG.
20const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT};
21
Marijn Kruisselbrinkcde64632018-06-22 22:45:1622// Enable mojo Blob URL interface and better blob URL lifetime management.
23// Can be enabled independently of NetworkService.
24const base::Feature kMojoBlobURLs{"MojoBlobURLs",
25 base::FEATURE_DISABLED_BY_DEFAULT};
26
Nate Chapin304237d2018-07-18 21:41:1027// Nested workers. See https://crbug.com/31666
28const base::Feature kNestedWorkers{"NestedWorkers",
29 base::FEATURE_ENABLED_BY_DEFAULT};
30
Matt Falkenhagen5cc652792018-06-21 10:34:3331// Enable new service worker glue for NetworkService. Can be
32// enabled independently of NetworkService.
33const base::Feature kServiceWorkerServicification{
34 "ServiceWorkerServicification", base::FEATURE_DISABLED_BY_DEFAULT};
35
Lu Chenb1b31c02018-07-24 19:21:1036// 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.
41const base::Feature kRecordAnchorMetricsClicked{
42 "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT};
43const base::Feature kRecordAnchorMetricsVisible{
44 "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT};
45
Lucas Furukawa Gadani72655072018-07-26 22:34:3346// Enable Portals. https://crbug.com/865123.
47const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
48
Scott Haseley7757f6c2018-08-03 14:33:2349// Stop non-timer task queues in background, after allowed grace time. Launch
50// bug: https://crbug.com/822954.
51const base::Feature kStopNonTimersInBackground{
52 "stop-non-timers-in-background", base::FEATURE_DISABLED_BY_DEFAULT};
53
Fabio Tirelo9b423c7b2018-08-15 14:32:1854const char kAutofillPreviewStyleExperimentBgColorParameterName[] = "bg_color";
55
56const char kAutofillPreviewStyleExperimentColorParameterName[] = "color";
57
Matt Falkenhagen5cc652792018-06-21 10:34:3358} // namespace features
59} // namespace blink