Skip to main content

cef_content_setting_types_t

Enum cef_content_setting_types_t 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum cef_content_setting_types_t {
Show 130 variants CEF_CONTENT_SETTING_TYPE_COOKIES = 0, CEF_CONTENT_SETTING_TYPE_IMAGES = 1, CEF_CONTENT_SETTING_TYPE_JAVASCRIPT = 2, CEF_CONTENT_SETTING_TYPE_POPUPS = 3, CEF_CONTENT_SETTING_TYPE_GEOLOCATION = 4, CEF_CONTENT_SETTING_TYPE_NOTIFICATIONS = 5, CEF_CONTENT_SETTING_TYPE_AUTO_SELECT_CERTIFICATE = 6, CEF_CONTENT_SETTING_TYPE_MIXEDSCRIPT = 7, CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_MIC = 8, CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_CAMERA = 9, CEF_CONTENT_SETTING_TYPE_PROTOCOL_HANDLERS = 10, CEF_CONTENT_SETTING_TYPE_DEPRECATED_PPAPI_BROKER = 11, CEF_CONTENT_SETTING_TYPE_AUTOMATIC_DOWNLOADS = 12, CEF_CONTENT_SETTING_TYPE_MIDI_SYSEX = 13, CEF_CONTENT_SETTING_TYPE_SSL_CERT_DECISIONS = 14, CEF_CONTENT_SETTING_TYPE_PROTECTED_MEDIA_IDENTIFIER = 15, CEF_CONTENT_SETTING_TYPE_APP_BANNER = 16, CEF_CONTENT_SETTING_TYPE_SITE_ENGAGEMENT = 17, CEF_CONTENT_SETTING_TYPE_DURABLE_STORAGE = 18, CEF_CONTENT_SETTING_TYPE_USB_CHOOSER_DATA = 19, CEF_CONTENT_SETTING_TYPE_BLUETOOTH_GUARD = 20, CEF_CONTENT_SETTING_TYPE_BACKGROUND_SYNC = 21, CEF_CONTENT_SETTING_TYPE_AUTOPLAY = 22, CEF_CONTENT_SETTING_TYPE_IMPORTANT_SITE_INFO = 23, CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOBLOCKER_DATA = 24, CEF_CONTENT_SETTING_TYPE_ADS = 25, CEF_CONTENT_SETTING_TYPE_ADS_DATA = 26, CEF_CONTENT_SETTING_TYPE_MIDI = 27, CEF_CONTENT_SETTING_TYPE_PASSWORD_PROTECTION = 28, CEF_CONTENT_SETTING_TYPE_MEDIA_ENGAGEMENT = 29, CEF_CONTENT_SETTING_TYPE_SOUND = 30, CEF_CONTENT_SETTING_TYPE_CLIENT_HINTS = 31, CEF_CONTENT_SETTING_TYPE_SENSORS = 32, CEF_CONTENT_SETTING_TYPE_DEPRECATED_ACCESSIBILITY_EVENTS = 33, CEF_CONTENT_SETTING_TYPE_PAYMENT_HANDLER = 34, CEF_CONTENT_SETTING_TYPE_USB_GUARD = 35, CEF_CONTENT_SETTING_TYPE_BACKGROUND_FETCH = 36, CEF_CONTENT_SETTING_TYPE_INTENT_PICKER_DISPLAY = 37, CEF_CONTENT_SETTING_TYPE_IDLE_DETECTION = 38, CEF_CONTENT_SETTING_TYPE_SERIAL_GUARD = 39, CEF_CONTENT_SETTING_TYPE_SERIAL_CHOOSER_DATA = 40, CEF_CONTENT_SETTING_TYPE_PERIODIC_BACKGROUND_SYNC = 41, CEF_CONTENT_SETTING_TYPE_BLUETOOTH_SCANNING = 42, CEF_CONTENT_SETTING_TYPE_HID_GUARD = 43, CEF_CONTENT_SETTING_TYPE_HID_CHOOSER_DATA = 44, CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SCREEN = 45, CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SYSTEM = 46, CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_ACCESS = 47, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_WRITE_GUARD = 48, CEF_CONTENT_SETTING_TYPE_NFC = 49, CEF_CONTENT_SETTING_TYPE_BLUETOOTH_CHOOSER_DATA = 50, CEF_CONTENT_SETTING_TYPE_CLIPBOARD_READ_WRITE = 51, CEF_CONTENT_SETTING_TYPE_CLIPBOARD_SANITIZED_WRITE = 52, CEF_CONTENT_SETTING_TYPE_SAFE_BROWSING_URL_CHECK_DATA = 53, CEF_CONTENT_SETTING_TYPE_VR = 54, CEF_CONTENT_SETTING_TYPE_AR = 55, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_READ_GUARD = 56, CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS = 57, CEF_CONTENT_SETTING_TYPE_CAMERA_PAN_TILT_ZOOM = 58, CEF_CONTENT_SETTING_TYPE_WINDOW_MANAGEMENT = 59, CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK_DEPRECATED = 60, CEF_CONTENT_SETTING_TYPE_LOCAL_FONTS = 61, CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOREVOCATION_DATA = 62, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY = 63, CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE = 64, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_CHOOSER_DATA = 65, CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_SHARING = 66, CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_JIT = 67, CEF_CONTENT_SETTING_TYPE_HTTP_ALLOWED = 68, CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA = 69, CEF_CONTENT_SETTING_TYPE_DEPRECATED_FEDERATED_IDENTITY_ACTIVE_SESSION = 70, CEF_CONTENT_SETTING_TYPE_AUTO_DARK_WEB_CONTENT = 71, CEF_CONTENT_SETTING_TYPE_REQUEST_DESKTOP_SITE = 72, CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_API = 73, CEF_CONTENT_SETTING_TYPE_NOTIFICATION_INTERACTIONS = 74, CEF_CONTENT_SETTING_TYPE_REDUCED_ACCEPT_LANGUAGE = 75, CEF_CONTENT_SETTING_TYPE_NOTIFICATION_PERMISSION_REVIEW = 76, CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_GUARD_DEPRECATED = 77, CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_CHOOSER_DATA_DEPRECATED = 78, CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS = 79, CEF_CONTENT_SETTING_TYPE_REVOKED_UNUSED_SITE_PERMISSIONS = 80, CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_STORAGE_ACCESS = 81, CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_AUTO_REAUTHN_PERMISSION = 82, CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_REGISTRATION = 83, CEF_CONTENT_SETTING_TYPE_ANTI_ABUSE = 84, CEF_CONTENT_SETTING_TYPE_THIRD_PARTY_STORAGE_PARTITIONING = 85, CEF_CONTENT_SETTING_TYPE_HTTPS_ENFORCED = 86, CEF_CONTENT_SETTING_TYPE_ALL_SCREEN_CAPTURE = 87, CEF_CONTENT_SETTING_TYPE_COOKIE_CONTROLS_METADATA = 88, CEF_CONTENT_SETTING_TYPE_TPCD_HEURISTICS_GRANTS = 89, CEF_CONTENT_SETTING_TYPE_TPCD_METADATA_GRANTS = 90, CEF_CONTENT_SETTING_TYPE_TPCD_TRIAL_DEPRECATED = 91, CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_TRIAL_DEPRECATED = 92, CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_ORIGIN_TRIAL_DEPRECATED = 93, CEF_CONTENT_SETTING_TYPE_AUTO_PICTURE_IN_PICTURE = 94, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION = 95, CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_RESTORE_PERMISSION = 96, CEF_CONTENT_SETTING_TYPE_CAPTURED_SURFACE_CONTROL = 97, CEF_CONTENT_SETTING_TYPE_SMART_CARD_GUARD = 98, CEF_CONTENT_SETTING_TYPE_SMART_CARD_DATA = 99, CEF_CONTENT_SETTING_TYPE_WEB_PRINTING = 100, CEF_CONTENT_SETTING_TYPE_AUTOMATIC_FULLSCREEN = 101, CEF_CONTENT_SETTING_TYPE_SUB_APP_INSTALLATION_PROMPTS = 102, CEF_CONTENT_SETTING_TYPE_SPEAKER_SELECTION = 103, CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS = 104, CEF_CONTENT_SETTING_TYPE_KEYBOARD_LOCK = 105, CEF_CONTENT_SETTING_TYPE_POINTER_LOCK = 106, CEF_CONTENT_SETTING_TYPE_REVOKED_ABUSIVE_NOTIFICATION_PERMISSIONS = 107, CEF_CONTENT_SETTING_TYPE_TRACKING_PROTECTION = 108, CEF_CONTENT_SETTING_TYPE_DISPLAY_MEDIA_SYSTEM_AUDIO = 109, CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_OPTIMIZER = 110, CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS_HEADER_ORIGIN_TRIAL = 111, CEF_CONTENT_SETTING_TYPE_HAND_TRACKING = 112, CEF_CONTENT_SETTING_TYPE_WEB_APP_INSTALLATION = 113, CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS = 114, CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_SCOPE = 115, CEF_CONTENT_SETTING_TYPE_ARE_SUSPICIOUS_NOTIFICATIONS_ALLOWLISTED_BY_USER = 116, CEF_CONTENT_SETTING_TYPE_CONTROLLED_FRAME = 117, CEF_CONTENT_SETTING_TYPE_REVOKED_DISRUPTIVE_NOTIFICATION_PERMISSIONS = 118, CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK_ACCESS = 119, CEF_CONTENT_SETTING_TYPE_ON_DEVICE_SPEECH_RECOGNITION_LANGUAGES_DOWNLOADED = 120, CEF_CONTENT_SETTING_TYPE_INITIALIZED_TRANSLATIONS = 121, CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_IDS = 122, CEF_CONTENT_SETTING_TYPE_GEOLOCATION_WITH_OPTIONS = 123, CEF_CONTENT_SETTING_TYPE_DEVICE_ATTRIBUTES = 124, CEF_CONTENT_SETTING_TYPE_PERMISSION_ACTIONS_HISTORY = 125, CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_SHOW_ORIGINAL = 126, CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK = 127, CEF_CONTENT_SETTING_TYPE_LOOPBACK_NETWORK = 128, CEF_CONTENT_SETTING_TYPE_NUM_VALUES = 129,
}
Expand description

Supported content setting types. Some types are platform-specific or only supported with Chrome style. Should be kept in sync with Chromium’s ContentSettingsType type.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CEF_CONTENT_SETTING_TYPE_COOKIES = 0

This setting governs whether cookies are enabled by the user in the provided context. However, it may be overridden by other settings. This enum should NOT be read directly to determine whether cookies are enabled; the client should instead rely on the CookieSettings API.

§

CEF_CONTENT_SETTING_TYPE_IMAGES = 1

This setting governs whether cookies are enabled by the user in the provided context. However, it may be overridden by other settings. This enum should NOT be read directly to determine whether cookies are enabled; the client should instead rely on the CookieSettings API.

§

CEF_CONTENT_SETTING_TYPE_JAVASCRIPT = 2

This setting governs whether cookies are enabled by the user in the provided context. However, it may be overridden by other settings. This enum should NOT be read directly to determine whether cookies are enabled; the client should instead rely on the CookieSettings API.

§

CEF_CONTENT_SETTING_TYPE_POPUPS = 3

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_GEOLOCATION = 4

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_NOTIFICATIONS = 5

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_AUTO_SELECT_CERTIFICATE = 6

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_MIXEDSCRIPT = 7

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_MIC = 8

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_CAMERA = 9

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_PROTOCOL_HANDLERS = 10

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_DEPRECATED_PPAPI_BROKER = 11

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_AUTOMATIC_DOWNLOADS = 12

This setting governs both popups and unwanted redirects like tab-unders and framebusting.

§

CEF_CONTENT_SETTING_TYPE_MIDI_SYSEX = 13

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_SSL_CERT_DECISIONS = 14

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_PROTECTED_MEDIA_IDENTIFIER = 15

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_APP_BANNER = 16

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_SITE_ENGAGEMENT = 17

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_DURABLE_STORAGE = 18

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_USB_CHOOSER_DATA = 19

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_BLUETOOTH_GUARD = 20

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_BACKGROUND_SYNC = 21

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_AUTOPLAY = 22

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_IMPORTANT_SITE_INFO = 23

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOBLOCKER_DATA = 24

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_ADS = 25

Advanced device-specific functions on MIDI devices. MIDI-SysEx communications can be used for changing the MIDI device’s persistent state such as firmware.

§

CEF_CONTENT_SETTING_TYPE_ADS_DATA = 26

Website setting which stores metadata for the subresource filter to aid in decisions for whether or not to show the UI.

§

CEF_CONTENT_SETTING_TYPE_MIDI = 27

MIDI stands for Musical Instrument Digital Interface. It is a standard that allows electronic musical instruments, computers, and other devices to communicate with each other.

§

CEF_CONTENT_SETTING_TYPE_PASSWORD_PROTECTION = 28

This content setting type is for caching password protection service’s verdicts of each origin.

§

CEF_CONTENT_SETTING_TYPE_MEDIA_ENGAGEMENT = 29

Website setting which stores engagement data for media related to a specific origin.

§

CEF_CONTENT_SETTING_TYPE_SOUND = 30

Content setting which stores whether or not the site can play audible sound. This will not block playback but instead the user will not hear it.

§

CEF_CONTENT_SETTING_TYPE_CLIENT_HINTS = 31

Website setting which stores the list of client hints that the origin requested the browser to remember. The browser is expected to send all client hints in the HTTP request headers for every resource requested from that origin.

§

CEF_CONTENT_SETTING_TYPE_SENSORS = 32

Generic Sensor API covering ambient-light-sensor, accelerometer, gyroscope and magnetometer are all mapped to a single content_settings_type. Setting for the Generic Sensor API covering ambient-light-sensor, accelerometer, gyroscope and magnetometer. These are all mapped to a single ContentSettingsType.

§

CEF_CONTENT_SETTING_TYPE_DEPRECATED_ACCESSIBILITY_EVENTS = 33

Content setting which stores whether or not the user has granted the site permission to respond to accessibility events, which can be used to provide a custom accessibility experience. Requires explicit user consent because some users may not want sites to know they’re using assistive technology. Deprecated in M131.

§

CEF_CONTENT_SETTING_TYPE_PAYMENT_HANDLER = 34

Used to store whether to allow a website to install a payment handler.

§

CEF_CONTENT_SETTING_TYPE_USB_GUARD = 35

Content setting which stores whether to allow sites to ask for permission to access USB devices. If this is allowed specific device permissions are stored under USB_CHOOSER_DATA.

§

CEF_CONTENT_SETTING_TYPE_BACKGROUND_FETCH = 36

Nothing is stored in this setting at present. Please refer to BackgroundFetchPermissionContext for details on how this permission is ascertained.

§

CEF_CONTENT_SETTING_TYPE_INTENT_PICKER_DISPLAY = 37

Website setting which stores the amount of times the user has dismissed intent picker UI without explicitly choosing an option.

§

CEF_CONTENT_SETTING_TYPE_IDLE_DETECTION = 38

Used to store whether to allow a website to detect user active/idle state.

§

CEF_CONTENT_SETTING_TYPE_SERIAL_GUARD = 39

Content settings for access to serial ports. The “guard” content setting stores whether to allow sites to ask for permission to access a port. The permissions granted to access particular ports are stored in the “chooser data” website setting.

§

CEF_CONTENT_SETTING_TYPE_SERIAL_CHOOSER_DATA = 40

Content settings for access to serial ports. The “guard” content setting stores whether to allow sites to ask for permission to access a port. The permissions granted to access particular ports are stored in the “chooser data” website setting.

§

CEF_CONTENT_SETTING_TYPE_PERIODIC_BACKGROUND_SYNC = 41

Nothing is stored in this setting at present. Please refer to PeriodicBackgroundSyncPermissionContext for details on how this permission is ascertained. This content setting is not registered because it does not require access to any existing providers.

§

CEF_CONTENT_SETTING_TYPE_BLUETOOTH_SCANNING = 42

Content setting which stores whether to allow sites to ask for permission to do Bluetooth scanning.

§

CEF_CONTENT_SETTING_TYPE_HID_GUARD = 43

Content settings for access to HID devices. The “guard” content setting stores whether to allow sites to ask for permission to access a device. The permissions granted to access particular devices are stored in the “chooser data” website setting.

§

CEF_CONTENT_SETTING_TYPE_HID_CHOOSER_DATA = 44

Content settings for access to HID devices. The “guard” content setting stores whether to allow sites to ask for permission to access a device. The permissions granted to access particular devices are stored in the “chooser data” website setting.

§

CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SCREEN = 45

Wake Lock API, which has two lock types: screen and system locks. Currently, screen locks do not need any additional permission, and system locks are always denied while the right UI is worked out.

§

CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SYSTEM = 46

Wake Lock API, which has two lock types: screen and system locks. Currently, screen locks do not need any additional permission, and system locks are always denied while the right UI is worked out.

Legacy SameSite cookie behavior. This disables SameSite=Lax-by-default, SameSite=None requires Secure, and Schemeful Same-Site, forcing the legacy behavior wherein 1) cookies that don’t specify SameSite are treated as SameSite=None, 2) SameSite=None cookies are not required to be Secure, and 3) schemeful same-site is not active.

This will also be used to revert to legacy behavior when future changes in cookie handling are introduced.

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_WRITE_GUARD = 48

Content settings which stores whether to allow sites to ask for permission to save changes to an original file selected by the user through the File System Access API.

§

CEF_CONTENT_SETTING_TYPE_NFC = 49

Used to store whether to allow a website to exchange data with NFC devices.

§

CEF_CONTENT_SETTING_TYPE_BLUETOOTH_CHOOSER_DATA = 50

Website setting to store permissions granted to access particular Bluetooth devices.

§

CEF_CONTENT_SETTING_TYPE_CLIPBOARD_READ_WRITE = 51

Full access to the system clipboard (sanitized read without user gesture, and unsanitized read and write with user gesture).

§

CEF_CONTENT_SETTING_TYPE_CLIPBOARD_SANITIZED_WRITE = 52

This is special-cased in the permissions layer to always allow, and as such doesn’t have associated prefs data.

§

CEF_CONTENT_SETTING_TYPE_SAFE_BROWSING_URL_CHECK_DATA = 53

This content setting type is for caching safe browsing real time url check’s verdicts of each origin.

§

CEF_CONTENT_SETTING_TYPE_VR = 54

Used to store whether a site is allowed to request AR or VR sessions with the WebXr Device API.

§

CEF_CONTENT_SETTING_TYPE_AR = 55

Used to store whether a site is allowed to request AR or VR sessions with the WebXr Device API.

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_READ_GUARD = 56

Content setting which stores whether to allow site to open and read files and directories selected through the File System Access API.

§

CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS = 57

Access to first party storage in a third-party context. Exceptions are scoped to the combination of requesting/top-level origin, and are managed through the Storage Access API. For the time being, this content setting exists in parallel to third-party cookie rules stored in COOKIES.

§

CEF_CONTENT_SETTING_TYPE_CAMERA_PAN_TILT_ZOOM = 58

Content setting which stores whether to allow a site to control camera movements. It does not give access to camera.

§

CEF_CONTENT_SETTING_TYPE_WINDOW_MANAGEMENT = 59

Content setting for Screen Enumeration and Screen Detail functionality. Permits access to detailed multi-screen information, like size and position. Permits placing fullscreen and windowed content on specific screens. See also: https://w3c.github.io/window-placement

§

CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK_DEPRECATED = 60

§

CEF_CONTENT_SETTING_TYPE_LOCAL_FONTS = 61

Content setting which stores whether or not a site can access low-level locally installed font data using the Local Fonts Access API.

§

CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOREVOCATION_DATA = 62

Stores per-origin state for permission auto-revocation (for all permission types).

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY = 63

Stores per-origin state of the most recently selected directory for the use by the File System Access API.

§

CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE = 64

Controls access to the getDisplayMedia API.

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_CHOOSER_DATA = 65

Website setting to store permissions metadata granted to paths on the local file system via the File System Access API. |FILE_SYSTEM_WRITE_GUARD| is the corresponding “guard” setting. The stored data represents valid permission only if |FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION| is enabled via user opt-in. Otherwise, they represent “recently granted but revoked permission”, which are used to restore the permission.

§

CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_SHARING = 66

Stores a grant that allows a relying party to send a request for identity information to specified identity providers, potentially through any anti-tracking measures that would otherwise prevent it. This setting is associated with the relying party’s origin.

§

CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_JIT = 67

Whether to use the v8 optimized JIT for running JavaScript on the page.

§

CEF_CONTENT_SETTING_TYPE_HTTP_ALLOWED = 68

Content setting which stores user decisions to allow loading a site over HTTP. Entries are added by hostname when a user bypasses the HTTPS-First Mode interstitial warning when a site does not support HTTPS. Allowed hosts are exact hostname matches – subdomains of a host on the allowlist must be separately allowlisted.

§

CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA = 69

Stores metadata related to form fill, such as e.g. whether user data was autofilled on a specific website.

§

CEF_CONTENT_SETTING_TYPE_DEPRECATED_FEDERATED_IDENTITY_ACTIVE_SESSION = 70

Setting to indicate that there is an active federated sign-in session between a specified relying party and a specified identity provider for a specified account. When this is present it allows access to session management capabilities between the sites. This setting is associated with the relying party’s origin.

§

CEF_CONTENT_SETTING_TYPE_AUTO_DARK_WEB_CONTENT = 71

Setting to indicate whether Chrome should automatically apply darkening to web content.

§

CEF_CONTENT_SETTING_TYPE_REQUEST_DESKTOP_SITE = 72

Setting to indicate whether Chrome should request the desktop view of a site instead of the mobile one.

§

CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_API = 73

Setting to indicate whether browser should allow signing into a website via the browser FedCM API.

§

CEF_CONTENT_SETTING_TYPE_NOTIFICATION_INTERACTIONS = 74

Stores notification interactions per origin for the past 90 days. Interactions per origin are pre-aggregated over seven-day windows: A notification interaction or display is assigned to the last Monday midnight in local time.

§

CEF_CONTENT_SETTING_TYPE_REDUCED_ACCEPT_LANGUAGE = 75

Website setting which stores the last reduced accept language negotiated for a given origin, to be used on future visits to the origin.

§

CEF_CONTENT_SETTING_TYPE_NOTIFICATION_PERMISSION_REVIEW = 76

Website setting which is used for NotificationPermissionReviewService to store origin blocklist from review notification permissions feature.

§

CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_GUARD_DEPRECATED = 77

§

CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_CHOOSER_DATA_DEPRECATED = 78

§

CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS = 79

Website setting which stores whether the browser has observed the user signing into an identity-provider based on observing the IdP-SignIn-Status HTTP header.

§

CEF_CONTENT_SETTING_TYPE_REVOKED_UNUSED_SITE_PERMISSIONS = 80

Website setting which is used for RevokedPermissionsService to store revoked permissions of unused sites from unused site permissions feature.

§

CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_STORAGE_ACCESS = 81

Similar to STORAGE_ACCESS, but applicable at the page-level rather than being specific to a frame.

§

CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_AUTO_REAUTHN_PERMISSION = 82

Setting to indicate whether user has opted in to allowing auto re-authn via the FedCM API.

§

CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_REGISTRATION = 83

Website setting which stores whether the user has explicitly registered a website as an identity-provider.

§

CEF_CONTENT_SETTING_TYPE_ANTI_ABUSE = 84

Content setting which is used to indicate whether anti-abuse functionality should be enabled.

§

CEF_CONTENT_SETTING_TYPE_THIRD_PARTY_STORAGE_PARTITIONING = 85

Content setting used to indicate whether third-party storage partitioning should be enabled.

§

CEF_CONTENT_SETTING_TYPE_HTTPS_ENFORCED = 86

Used to indicate whether HTTPS-First Mode is enabled on the hostname.

§

CEF_CONTENT_SETTING_TYPE_ALL_SCREEN_CAPTURE = 87

Setting for enabling the getAllScreensMedia API. Spec link: https://github.com/screen-share/capture-all-screens

Stores per origin metadata for cookie controls.

§

CEF_CONTENT_SETTING_TYPE_TPCD_HEURISTICS_GRANTS = 89

Content Setting for temporary 3PC accesses granted by user behavior heuristics.

§

CEF_CONTENT_SETTING_TYPE_TPCD_METADATA_GRANTS = 90

Content Setting for 3PC accesses granted by metadata delivered via the component updater service. This type will only be used when net::features::kTpcdMetadataGrants is enabled.

§

CEF_CONTENT_SETTING_TYPE_TPCD_TRIAL_DEPRECATED = 91

§

CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_TRIAL_DEPRECATED = 92

§

CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_ORIGIN_TRIAL_DEPRECATED = 93

§

CEF_CONTENT_SETTING_TYPE_AUTO_PICTURE_IN_PICTURE = 94

Content setting used to indicate whether entering picture-in-picture automatically should be enabled.

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION = 95

Whether user has opted into keeping file/directory permissions persistent between visits for a given origin. When enabled, permission metadata stored under |FILE_SYSTEM_ACCESS_CHOOSER_DATA| can auto-grant incoming permission request.

§

CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_RESTORE_PERMISSION = 96

Whether the FSA Persistent Permissions restore prompt is eligible to be shown to the user, for a given origin.

§

CEF_CONTENT_SETTING_TYPE_CAPTURED_SURFACE_CONTROL = 97

Whether an application capturing another tab, may scroll and zoom the captured tab.

§

CEF_CONTENT_SETTING_TYPE_SMART_CARD_GUARD = 98

Content setting for access to smart card readers. The “guard” content setting stores whether to allow sites to access the Smart Card API.

§

CEF_CONTENT_SETTING_TYPE_SMART_CARD_DATA = 99

Content setting for access to smart card readers. The “guard” content setting stores whether to allow sites to access the Smart Card API.

§

CEF_CONTENT_SETTING_TYPE_WEB_PRINTING = 100

Content settings for access to printers for the Web Printing API.

§

CEF_CONTENT_SETTING_TYPE_AUTOMATIC_FULLSCREEN = 101

Content setting used to indicate whether entering HTML Fullscreen automatically (i.e. without transient activation) should be enabled.

§

CEF_CONTENT_SETTING_TYPE_SUB_APP_INSTALLATION_PROMPTS = 102

Content settings used to indicate that a web app is allowed to prompt the user for the installation of sub apps.

§

CEF_CONTENT_SETTING_TYPE_SPEAKER_SELECTION = 103

Whether an application can enumerate audio output device.

§

CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS = 104

Content settings for access to the Direct Sockets API.

§

CEF_CONTENT_SETTING_TYPE_KEYBOARD_LOCK = 105

Keyboard Lock API allows a site to capture keyboard inputs that would otherwise be handled by the OS or the browser.

§

CEF_CONTENT_SETTING_TYPE_POINTER_LOCK = 106

Pointer Lock API allows a site to hide the cursor and have exclusive access to mouse inputs.

§

CEF_CONTENT_SETTING_TYPE_REVOKED_ABUSIVE_NOTIFICATION_PERMISSIONS = 107

Website setting which is used for RevokedPermissionsService to store auto-revoked notification permissions from abusive sites.

§

CEF_CONTENT_SETTING_TYPE_TRACKING_PROTECTION = 108

Content setting that controls tracking protection status per site. BLOCK: Protections enabled. This is the default state. ALLOW: Protections disabled.

§

CEF_CONTENT_SETTING_TYPE_DISPLAY_MEDIA_SYSTEM_AUDIO = 109

With this permission, when the application calls getDisplayMedia(), a system audio track can be returned without showing the display media selection picker. The application can explicitly specify systemAudio: 'exclude' or video: true to still show the display media selection picker if needed. Please note that the setting only works for WebUI.

§

CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_OPTIMIZER = 110

Whether to use the higher-tier v8 optimizers for running JavaScript on the page.

§

CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS_HEADER_ORIGIN_TRIAL = 111

Content Setting for the Storage Access Headers persistent origin trial that allows origins to opt into the storage access header behavior. Should be scoped to REQUESTING_ORIGIN_AND_TOP_SCHEMEFUL_SITE_SCOPE in order to correspond to the design of persistent origin trials. See also: https://github.com/cfredric/storage-access-headers ALLOW: storage access request headers will be attached to cross-site requests, and url requests will look for response headers from origins to retry a request or load with storage access. BLOCK (default): no effect.

§

CEF_CONTENT_SETTING_TYPE_HAND_TRACKING = 112

Whether or not sites can request Hand Tracking data within WebXR Sessions.

§

CEF_CONTENT_SETTING_TYPE_WEB_APP_INSTALLATION = 113

Website setting to indicate whether user has opted in to allow web apps to install other web apps.

§

CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS = 114

Content settings for private network access in the context of the Direct Sockets API.

Content settings for legacy cookie scope. Checks whether cookies scope is handled according to origin-bound cookies or legacy behavior.

§

CEF_CONTENT_SETTING_TYPE_ARE_SUSPICIOUS_NOTIFICATIONS_ALLOWLISTED_BY_USER = 116

Website setting to indicate whether the user has allowlisted suspicious notifications for the origin.

§

CEF_CONTENT_SETTING_TYPE_CONTROLLED_FRAME = 117

Content settings for access to the Controlled Frame API.

§

CEF_CONTENT_SETTING_TYPE_REVOKED_DISRUPTIVE_NOTIFICATION_PERMISSIONS = 118

Website setting which is used for RevokedPermissionsService to store revoked notification permissions of disruptive sites.

§

CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK_ACCESS = 119

Content setting for whether the site is allowed to make local network requests.

§

CEF_CONTENT_SETTING_TYPE_ON_DEVICE_SPEECH_RECOGNITION_LANGUAGES_DOWNLOADED = 120

Stores information on-device language packs for which a site has installed using the Web Speech API.

§

CEF_CONTENT_SETTING_TYPE_INITIALIZED_TRANSLATIONS = 121

Stores which Translator API language packs the site has initialized.

§

CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_IDS = 122

Stores a list of notification ids where content detection found the notification to be suspicious and a warning has already been shown for the site. Used for recovering notification contents from the database if the user decides they would like to see all of these notifications.

§

CEF_CONTENT_SETTING_TYPE_GEOLOCATION_WITH_OPTIONS = 123

To support approximate geolocation, the permission is migrating to use permissions with options, which won’t be stored as ContentSettings. Upon launch of the feature, GEOLOCATION and GEOLOCATION_WITH_OPTIONS should be merged.

§

CEF_CONTENT_SETTING_TYPE_DEVICE_ATTRIBUTES = 124

Setting for enabling the Device Attributes API. Spec link: https://wicg.github.io/WebApiDevice/device_attributes/

§

CEF_CONTENT_SETTING_TYPE_PERMISSION_ACTIONS_HISTORY = 125

Stores per-origin state for permission heuristics. Currently used for auto-granting geolocation element permission request after repeated temporary grants.

§

CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_SHOW_ORIGINAL = 126

Website setting to indicate whether the user has selected “show original” when suspicious warning is shown. If the user has selected this, the notification permission will not be revoked based on suspicious verdict.

§

CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK = 127

Content setting for whether the site is allowed to make local network requests. Split from LOCAL_NETWORK_ACCESS.

§

CEF_CONTENT_SETTING_TYPE_LOOPBACK_NETWORK = 128

Content setting for whether the site is allowed to make loopback network requests. Split from LOCAL_NETWORK_ACCESS.

§

CEF_CONTENT_SETTING_TYPE_NUM_VALUES = 129

Trait Implementations§

Source§

impl Clone for cef_content_setting_types_t

Source§

fn clone(&self) -> cef_content_setting_types_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cef_content_setting_types_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for cef_content_setting_types_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for cef_content_setting_types_t

Source§

fn eq(&self, other: &cef_content_setting_types_t) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for cef_content_setting_types_t

Source§

impl Eq for cef_content_setting_types_t

Source§

impl StructuralPartialEq for cef_content_setting_types_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.