blob: 0d0c1ea905b38be0bf7cff00b42499a9efffacc4 [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
Scott Haseley8eefdcd2018-08-22 16:50:197#include "build/build_config.h"
8
Matt Falkenhagen5cc652792018-06-21 10:34:339namespace blink {
10namespace features {
11
Fabio Tirelo9b423c7b2018-08-15 14:32:1812const base::Feature kAutofillPreviewStyleExperiment{
13 "AutofillPreviewStyleExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
14
Matt Falkenhagenc25fea42018-07-17 07:13:5215// Enable eagerly setting up a CacheStorage interface pointer and
16// passing it to service workers on startup as an optimization.
17const base::Feature kEagerCacheStorageSetupForServiceWorkers{
18 "EagerCacheStorageSetupForServiceWorkers",
19 base::FEATURE_ENABLED_BY_DEFAULT};
20
Ian Kilpatricke68ef11a2018-07-04 03:52:1021// Enable LayoutNG.
22const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT};
23
Marijn Kruisselbrinkcde64632018-06-22 22:45:1624// Enable mojo Blob URL interface and better blob URL lifetime management.
25// Can be enabled independently of NetworkService.
26const base::Feature kMojoBlobURLs{"MojoBlobURLs",
27 base::FEATURE_DISABLED_BY_DEFAULT};
28
Nate Chapin304237d2018-07-18 21:41:1029// Nested workers. See https://crbug.com/31666
30const base::Feature kNestedWorkers{"NestedWorkers",
31 base::FEATURE_ENABLED_BY_DEFAULT};
32
Daniel Murphy80ce3022018-10-18 07:28:0733// Onion souping for all DOMStorage. https://crbug.com/781870
Daniel Murphy95792ef2018-10-04 01:29:5534const base::Feature kOnionSoupDOMStorage{"OnionSoupDOMStorage",
Daniel Murphy80ce3022018-10-18 07:28:0735 base::FEATURE_ENABLED_BY_DEFAULT};
Daniel Murphy95792ef2018-10-04 01:29:5536
37// Enable Portals. https://crbug.com/865123.
38const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
39
40// Used to control the collection of anchor element metrics (crbug.com/856683).
41// If kRecordAnchorMetricsClicked is enabled, then metrics of anchor elements
42// clicked by the user will be extracted and recorded.
43// If kRecordAnchorMetricsVisible is enabled, then metrics of anchor elements
44// in the first viewport after the page load will be extracted and recorded.
45const base::Feature kRecordAnchorMetricsClicked{
46 "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT};
47const base::Feature kRecordAnchorMetricsVisible{
48 "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT};
49
momohattfc352292018-08-29 05:12:3650const base::Feature kServiceWorkerImportedScriptUpdateCheck{
51 "ServiceWorkerImportedScriptUpdateCheck",
52 base::FEATURE_DISABLED_BY_DEFAULT};
53
Ben Kellye20dc402018-09-18 01:55:4254// Enables reading a subresource's body data and side data in parallel.
55const base::Feature kServiceWorkerParallelSideDataReading{
56 "ServiceWorkerParallelSideDataReading", base::FEATURE_ENABLED_BY_DEFAULT};
57
Matt Falkenhagen5cc652792018-06-21 10:34:3358// Enable new service worker glue for NetworkService. Can be
59// enabled independently of NetworkService.
60const base::Feature kServiceWorkerServicification{
Matt Falkenhagen5d2271c2018-10-17 10:12:4461 "ServiceWorkerServicification", base::FEATURE_ENABLED_BY_DEFAULT};
Matt Falkenhagen5cc652792018-06-21 10:34:3362
Scott Haseley8eefdcd2018-08-22 16:50:1963// Freeze scheduler task queues in background after allowed grace time.
64// "stop" is a legacy name.
65const base::Feature kStopInBackground {
66 "stop-in-background",
67#if defined(OS_ANDROID)
68 base::FEATURE_ENABLED_BY_DEFAULT
69#else
70 base::FEATURE_DISABLED_BY_DEFAULT
71#endif
72};
73
Shubhie Panicker60bd4b02018-09-26 00:02:1574// Freeze non-timer task queues in background, after allowed grace time.
75// "stop" is a legacy name.
76const base::Feature kStopNonTimersInBackground {
77 "stop-non-timers-in-background",
78#if defined(OS_ANDROID)
79 base::FEATURE_ENABLED_BY_DEFAULT
80#else
81 base::FEATURE_DISABLED_BY_DEFAULT
82#endif
83};
Scott Haseley7757f6c2018-08-03 14:33:2384
Marijn Kruisselbrink52a63132018-08-29 16:25:2185// Writable files and native filesystem access. https://crbug.com/853326
86const base::Feature kWritableFilesAPI{"WritableFilesAPI",
87 base::FEATURE_DISABLED_BY_DEFAULT};
88
Carlos ILe30fab22018-10-02 01:47:4889const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent",
90 base::FEATURE_DISABLED_BY_DEFAULT};
91
Steve Kobes6bd83962018-10-04 20:11:2992// Tracks "jank" from layout objects changing their visual location between
93// animation frames (see crbug.com/581518).
94const base::Feature kJankTracking{"JankTracking",
95 base::FEATURE_DISABLED_BY_DEFAULT};
96
Henrik Boström386afc6d62018-10-08 07:47:1597// Changes the default RTCPeerConnection constructor behavior to use Unified
98// Plan as the SDP semantics. When the feature is enabled, Unified Plan is used
99// unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the
100// argument).
101const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault",
102 base::FEATURE_DISABLED_BY_DEFAULT};
103
Fabio Tirelo9b423c7b2018-08-15 14:32:18104const char kAutofillPreviewStyleExperimentBgColorParameterName[] = "bg_color";
105
106const char kAutofillPreviewStyleExperimentColorParameterName[] = "color";
107
Carlos ILd3be52b2018-10-08 17:57:18108const char kMixedContentAutoupgradeModeParamName[] = "mode";
109const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
110const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
111 "optionally-blockable";
112
Matt Falkenhagen5cc652792018-06-21 10:34:33113} // namespace features
114} // namespace blink