blob: 28ddf749405b8e02d0cd5bb8f3f35e575655ab91 [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
Matt Falkenhagenc25fea42018-07-17 07:13:5210// Enable eagerly setting up a CacheStorage interface pointer and
11// passing it to service workers on startup as an optimization.
12const base::Feature kEagerCacheStorageSetupForServiceWorkers{
13 "EagerCacheStorageSetupForServiceWorkers",
14 base::FEATURE_ENABLED_BY_DEFAULT};
15
Ian Kilpatricke68ef11a2018-07-04 03:52:1016// Enable LayoutNG.
17const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT};
18
Marijn Kruisselbrinkcde64632018-06-22 22:45:1619// Enable mojo Blob URL interface and better blob URL lifetime management.
20// Can be enabled independently of NetworkService.
21const base::Feature kMojoBlobURLs{"MojoBlobURLs",
22 base::FEATURE_DISABLED_BY_DEFAULT};
23
Nate Chapin304237d2018-07-18 21:41:1024// Nested workers. See https://crbug.com/31666
25const base::Feature kNestedWorkers{"NestedWorkers",
26 base::FEATURE_ENABLED_BY_DEFAULT};
27
Matt Falkenhagen5cc652792018-06-21 10:34:3328// Enable new service worker glue for NetworkService. Can be
29// enabled independently of NetworkService.
30const base::Feature kServiceWorkerServicification{
31 "ServiceWorkerServicification", base::FEATURE_DISABLED_BY_DEFAULT};
32
Lu Chenb1b31c02018-07-24 19:21:1033// 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.
38const base::Feature kRecordAnchorMetricsClicked{
39 "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT};
40const base::Feature kRecordAnchorMetricsVisible{
41 "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT};
42
Lucas Furukawa Gadani72655072018-07-26 22:34:3343// Enable Portals. https://crbug.com/865123.
44const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
45
Scott Haseley7757f6c2018-08-03 14:33:2346// Stop non-timer task queues in background, after allowed grace time. Launch
47// bug: https://crbug.com/822954.
48const base::Feature kStopNonTimersInBackground{
49 "stop-non-timers-in-background", base::FEATURE_DISABLED_BY_DEFAULT};
50
Matt Falkenhagen5cc652792018-06-21 10:34:3351} // namespace features
52} // namespace blink