blob: 91a1900225f7504e66a174fd43161e60504da11b [file] [log] [blame]
// 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"
#include "build/build_config.h"
namespace blink {
namespace features {
const base::Feature kAutofillPreviewStyleExperiment{
"AutofillPreviewStyleExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable eagerly setting up a CacheStorage interface pointer and
// passing it to service workers on startup as an optimization.
const base::Feature kEagerCacheStorageSetupForServiceWorkers{
// Controls the user-specified viewport restriction for GPU Rasterization on
// mobile. See
const base::Feature kEnableGpuRasterizationViewportRestriction{
// Controls script streaming.
const base::Feature kScriptStreaming{"ScriptStreaming",
// Enable FCP++ by experiment. See
const base::Feature kFirstContentfulPaintPlusPlus{
"FirstContentfulPaintPlusPlus", base::FEATURE_DISABLED_BY_DEFAULT};
// Tracks "jank" from layout objects changing their visual location between
// animation frames (see
const base::Feature kJankTracking{"JankTracking",
// Enable a new compositing mode called BlinkGenPropertyTrees where Blink
// generates the compositor property trees. See:
const base::Feature kBlinkGenPropertyTrees{"BlinkGenPropertyTrees",
// Enable LayoutNG.
const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent",
// Enable mojo Blob URL interface and better blob URL lifetime management.
// Can be enabled independently of NetworkService.
const base::Feature kMojoBlobURLs{"MojoBlobURLs",
// Onion souping for all DOMStorage.
const base::Feature kOnionSoupDOMStorage{"OnionSoupDOMStorage",
// Enable Portals.
const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable Implicit Root Scroller.
const base::Feature kImplicitRootScroller{"ImplicitRootScroller",
// Enables usage of getDisplayMedia() that allows capture of web content, see
const base::Feature kRTCGetDisplayMedia{"RTCGetDisplayMedia",
// Changes the default RTCPeerConnection constructor behavior to use Unified
// Plan as the SDP semantics. When the feature is enabled, Unified Plan is used
// unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the
// argument).
const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault",
// Used to control the collection of anchor element metrics (
// 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};
const base::Feature kServiceWorkerImportedScriptUpdateCheck{
// Enables reading a subresource's body data and side data in parallel.
const base::Feature kServiceWorkerParallelSideDataReading{
"ServiceWorkerParallelSideDataReading", 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_ENABLED_BY_DEFAULT};
// Freeze scheduler task queues in background after allowed grace time.
// "stop" is a legacy name.
const base::Feature kStopInBackground {
#if defined(OS_ANDROID)
// Freeze non-timer task queues in background, after allowed grace time.
// "stop" is a legacy name.
const base::Feature kStopNonTimersInBackground {
#if defined(OS_ANDROID)
// Enables the site isolated Wasm code cache that is keyed on the resource URL
// and the origin lock of the renderer that is requesting the resource. When
// this flag is enabled, content/GeneratedCodeCache handles code cache requests.
const base::Feature kWasmCodeCache = {"WasmCodeCache",
// Writable files and native filesystem access.
const base::Feature kWritableFilesAPI{"WritableFilesAPI",
const char kAutofillPreviewStyleExperimentBgColorParameterName[] = "bg_color";
const char kAutofillPreviewStyleExperimentColorParameterName[] = "color";
const char kMixedContentAutoupgradeModeParamName[] = "mode";
const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
} // namespace features
} // namespace blink