| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "third_party/blink/public/common/features.h" |
| |
| namespace blink { |
| namespace features { |
| |
| // Enable eagerly setting up a CacheStorage interface pointer and |
| // passing it to service workers on startup as an optimization. |
| const base::Feature kEagerCacheStorageSetupForServiceWorkers{ |
| "EagerCacheStorageSetupForServiceWorkers", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Enable LayoutNG. |
| const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enable mojo Blob URL interface and better blob URL lifetime management. |
| // Can be enabled independently of NetworkService. |
| const base::Feature kMojoBlobURLs{"MojoBlobURLs", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Nested workers. See https://crbug.com/31666 |
| const base::Feature kNestedWorkers{"NestedWorkers", |
| base::FEATURE_ENABLED_BY_DEFAULT}; |
| |
| // Enable new service worker glue for NetworkService. Can be |
| // enabled independently of NetworkService. |
| const base::Feature kServiceWorkerServicification{ |
| "ServiceWorkerServicification", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Used to control the collection of anchor element metrics (crbug.com/856683). |
| // If kRecordAnchorMetricsClicked is enabled, then metrics of anchor elements |
| // clicked by the user will be extracted and recorded. |
| // If kRecordAnchorMetricsVisible is enabled, then metrics of anchor elements |
| // in the first viewport after the page load will be extracted and recorded. |
| const base::Feature kRecordAnchorMetricsClicked{ |
| "RecordAnchorMetricsClicked", base::FEATURE_DISABLED_BY_DEFAULT}; |
| const base::Feature kRecordAnchorMetricsVisible{ |
| "RecordAnchorMetricsVisible", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| // Enable Portals. https://crbug.com/865123. |
| const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| } // namespace features |
| } // namespace blink |