chromium/components/content_settings/core/common/pref_names.h

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PREF_NAMES_H_
#define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PREF_NAMES_H_

#include "build/build_config.h"

namespace prefs {

// NOTE: This file does not contain all content settings related pref names as
// some of these are generated by WebsiteSettingsInfo from content settings
// names.

// CookieControlsMode enum value that decides when the cookie controls UI is
// enabled. This will block third-party cookies similar to
// kBlockThirdPartyCookies but with a new UI.
inline constexpr char kCookieControlsMode[] =;

// Version of the pattern format used to define content settings.
inline constexpr char kContentSettingsVersion[] =;

// Integer that specifies the index of the tab the user was on when they
// last visited the content settings window.
inline constexpr char kContentSettingsWindowLastTabIndex[] =;

// Preferences that are exclusively used to store managed values for default
// content settings.
inline constexpr char kManagedDefaultAdsSetting[] =;
inline constexpr char kManagedDefaultClipboardSetting[] =;
inline constexpr char kManagedDefaultCookiesSetting[] =;
inline constexpr char kManagedDefaultGeolocationSetting[] =;
inline constexpr char kManagedDefaultImagesSetting[] =;
inline constexpr char kManagedDefaultInsecureContentSetting[] =;
inline constexpr char kManagedDefaultJavaScriptSetting[] =;
inline constexpr char kManagedDefaultNotificationsSetting[] =;
inline constexpr char kManagedDefaultMediaStreamSetting[] =;
inline constexpr char kManagedDefaultPopupsSetting[] =;
inline constexpr char kManagedDefaultSensorsSetting[] =;
inline constexpr char kManagedDefaultWebBluetoothGuardSetting[] =;
inline constexpr char kManagedDefaultWebUsbGuardSetting[] =;
inline constexpr char kManagedDefaultFileSystemReadGuardSetting[] =;
inline constexpr char kManagedDefaultFileSystemWriteGuardSetting[] =;
inline constexpr char kManagedDefaultSerialGuardSetting[] =;
inline constexpr char kManagedDefaultInsecurePrivateNetworkSetting[] =;
inline constexpr char kManagedDefaultJavaScriptJitSetting[] =;
inline constexpr char kManagedDefaultJavaScriptOptimizerSetting[] =;
inline constexpr char kManagedDefaultWebHidGuardSetting[] =;
inline constexpr char kManagedDefaultWindowManagementSetting[] =;
inline constexpr char kManagedDefaultLocalFontsSetting[] =;
inline constexpr char kManagedDefaultThirdPartyStoragePartitioningSetting[] =;
inline constexpr char kManagedDefaultWebPrintingSetting[] =;
inline constexpr char kManagedDefaultDirectSocketsSetting[] =;

// Preferences that are exclusively used to store managed content settings
// patterns.
inline constexpr char kManagedAutomaticFullscreenAllowedForUrls[] =;
inline constexpr char kManagedAutomaticFullscreenBlockedForUrls[] =;
inline constexpr char kManagedAutoSelectCertificateForUrls[] =;
inline constexpr char kManagedClipboardAllowedForUrls[] =;
inline constexpr char kManagedClipboardBlockedForUrls[] =;
inline constexpr char kManagedCookiesAllowedForUrls[] =;
inline constexpr char kManagedCookiesBlockedForUrls[] =;
inline constexpr char kManagedCookiesSessionOnlyForUrls[] =;
inline constexpr char
    kManagedAccessToGetAllScreensMediaInSessionAllowedForUrls[] =;
inline constexpr char kManagedImagesAllowedForUrls[] =;
inline constexpr char kManagedImagesBlockedForUrls[] =;
inline constexpr char kManagedInsecureContentAllowedForUrls[] =;
inline constexpr char kManagedInsecureContentBlockedForUrls[] =;
inline constexpr char kManagedJavaScriptAllowedForUrls[] =;
inline constexpr char kManagedJavaScriptBlockedForUrls[] =;
inline constexpr char kManagedNotificationsAllowedForUrls[] =;
inline constexpr char kManagedNotificationsBlockedForUrls[] =;
inline constexpr char kManagedPopupsAllowedForUrls[] =;
inline constexpr char kManagedPopupsBlockedForUrls[] =;
inline constexpr char kManagedSensorsAllowedForUrls[] =;
inline constexpr char kManagedSensorsBlockedForUrls[] =;
inline constexpr char kManagedWebUsbAllowDevicesForUrls[] =;
inline constexpr char kManagedWebUsbAskForUrls[] =;
inline constexpr char kManagedWebUsbBlockedForUrls[] =;
inline constexpr char kManagedFileSystemReadAskForUrls[] =;
inline constexpr char kManagedFileSystemReadBlockedForUrls[] =;
inline constexpr char kManagedFileSystemWriteAskForUrls[] =;
inline constexpr char kManagedFileSystemWriteBlockedForUrls[] =;
inline constexpr char kManagedLegacyCookieAccessAllowedForDomains[] =;
inline constexpr char kManagedSerialAskForUrls[] =;
inline constexpr char kManagedSerialBlockedForUrls[] =;
inline constexpr char kManagedInsecurePrivateNetworkAllowedForUrls[] =;
inline constexpr char kManagedJavaScriptJitAllowedForSites[] =;
inline constexpr char kManagedJavaScriptJitBlockedForSites[] =;
inline constexpr char kManagedJavaScriptOptimizerAllowedForSites[] =;
inline constexpr char kManagedJavaScriptOptimizerBlockedForSites[] =;
inline constexpr char kManagedWebHidAskForUrls[] =;
inline constexpr char kManagedWebHidBlockedForUrls[] =;
inline constexpr char kManagedWindowManagementAllowedForUrls[] =;
inline constexpr char kManagedWindowManagementBlockedForUrls[] =;
inline constexpr char kManagedLocalFontsAllowedForUrls[] =;
inline constexpr char kManagedLocalFontsBlockedForUrls[] =;
inline constexpr char kManagedThirdPartyStoragePartitioningBlockedForOrigins[] =;
inline constexpr char kManagedWebPrintingAllowedForUrls[] =;
inline constexpr char kManagedWebPrintingBlockedForUrls[] =;
inline constexpr char kManagedDirectSocketsAllowedForUrls[] =;
inline constexpr char kManagedDirectSocketsBlockedForUrls[] =;

// Boolean indicating whether the quiet UI is enabled for notification
// permission requests. This and kEnableNotificationCPSS can't both be true
// at the same time.
inline constexpr char kEnableQuietNotificationPermissionUi[] =;

// Boolean indicating whether the quiet UI is enabled for geolocation
// permission requests. This and kEnableGeolocationCPSS can't both be true at
// the same time.
inline constexpr char kEnableQuietGeolocationPermissionUi[] =;

// Boolean indicating whether the users who have quiet notifications enabled
// adaptively have to be migrated to CPSS.
inline constexpr char kDidMigrateAdaptiveNotifiationQuietingToCPSS[] =;

// Boolean indicating whether CPSS is enabled for notification permissions.
// This and kEnableQuietNotificationPermissionUi can't both be true at the same
// time.
inline constexpr char kEnableNotificationCPSS[] =;

// Boolean indicating whether CPSS is enabled for geolocation permissions.
// This and kEnableQuietGeolocationPermissionUi can't both be true at the same
// time.
inline constexpr char kEnableGeolocationCPSS[] =;

// Enum indicating by which method the quiet UI has been enabled for
// notification permission requests. This is stored as of M88 and will be
// backfilled if the quiet UI is enabled but this preference has no value.
inline constexpr char kQuietNotificationPermissionUiEnablingMethod[] =;

// Time value indicating when the quiet notification UI was last disabled by the
// user. Only permission action history after this point is taken into account
// for adaptive quiet UI activation.
inline constexpr char kQuietNotificationPermissionUiDisabledTime[] =;

// Boolean that indicates whether the user has ever opened any of the in-context
// cookie controls, i.e. the Page Info cookies subpage, or ChromeGuard.
inline constexpr char kInContextCookieControlsOpened[] =;

#if BUILDFLAG(IS_ANDROID)
// Enable vibration for web notifications.
inline constexpr char kNotificationsVibrateEnabled[] =
    "notifications.vibrate_enabled";

// Window setting for request desktop site. When enabled, we will request
// mobile site if the window is narrow.
inline constexpr char kDesktopSiteWindowSettingEnabled[] =
    "desktop_site.window_setting";
#endif

}  // namespace prefs

#endif  // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PREF_NAMES_H_