blob: c8bdf5a5605e1f5e9f41f44a348bcdcae1a7a658 [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 "android_webview/common/aw_features.h"
namespace android_webview {
namespace features {
// Alphabetical:
// Enable brotli compression support in WebView.
const base::Feature kWebViewBrotliSupport{"WebViewBrotliSupport",
base::FEATURE_DISABLED_BY_DEFAULT};
// Use the SafeBrowsingApiHandler which uses the connectionless GMS APIs. This
// Feature is checked and used in downstream internal code.
const base::Feature kWebViewConnectionlessSafeBrowsing{
"WebViewConnectionlessSafeBrowsing", base::FEATURE_DISABLED_BY_DEFAULT};
// Sniff the content stream to guess the MIME type when the application doesn't
// tell us the MIME type explicitly.
//
// This only applies:
// * when NetworkService is enabled (if disabled, the legacy net path sniffs
// content anyway, as an implementation detail).
// * to app-provided content (shouldInterceptRequest,
// file:///android_{asset,res} URLs, content:// URLs), rather than content
// from the net stack (we may sniff content from the net stack anyway,
// depending on headers, but that's a NetworkService implementation detail).
const base::Feature kWebViewSniffMimeType{"WebViewSniffMimeType",
base::FEATURE_ENABLED_BY_DEFAULT};
// Wake up the MetricsService for each page load start/finish, renderer hang,
// and renderer close. This aligns with Chrome's behavior.
const base::Feature kWebViewWakeMetricsService{
"WebViewWakeMetricsService", base::FEATURE_DISABLED_BY_DEFAULT};
// Enable raster in wide color gamut for apps that use webview in a wide color
// gamut activity.
const base::Feature kWebViewWideColorGamutSupport{
"WebViewWideColorGamutSupport", base::FEATURE_ENABLED_BY_DEFAULT};
} // namespace features
} // namespace android_webview