chromium/tools/metrics/histograms/metadata/permissions/enums.xml

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

<!--

This file describes the enumerations referenced by entries in histograms.xml for
this directory. Some enums may instead be listed in the central enums.xml file
at src/tools/metrics/histograms/enums.xml when multiple files use them.

For best practices on writing enumerations descriptions, see
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#Enum-Histograms

Please follow the instructions in the OWNERS file in this directory to find a
reviewer. If no OWNERS file exists, please consider signing up at
go/reviewing-metrics (Googlers only), as all subdirectories are expected to
have an OWNERS file. As a last resort you can send the CL to
[email protected].
-->

<histogram-configuration>

<!-- Enum types -->

<enums>

<enum name="ActivityIndicatorState">
  <int value="0" label="In use"/>
  <int value="1" label="Blocked on the site level"/>
  <int value="2" label="Blocked on the system level"/>
</enum>

<enum name="AutoDSEPermissionRevertTransition">
  <int value="0" label="NO_DECISION_ASK"/>
  <int value="1" label="PRESERVE_ALLOW"/>
  <int value="2" label="CONFLICT_ASK"/>
  <int value="3" label="PRESERVE_BLOCK_ASK"/>
  <int value="4" label="PRESERVE_BLOCK_ALLOW"/>
  <int value="5" label="PRESERVE_BLOCK_BLOCK"/>
  <int value="6" label="INVALID_END_STATE"/>
</enum>

<enum name="BlockStateMetric">
  <int value="0" label="Denied by Default"/>
  <int value="1" label="mailto: Allowed by Default"/>
  <int value="2" label="news:/snews: Allowed by Default"/>
  <int value="3" label="news:/snews: Not a Default"/>
  <int value="4" label="Allowed by Enterprise Policy"/>
  <int value="5" label="Allowed by User Preference"/>
  <int value="6" label="Prompt"/>
</enum>

<enum name="CrowdDenyNotificationUxQuality">
  <int value="0" label="Uknown"/>
  <int value="1" label="Accceptable"/>
  <int value="2" label="Unsolicited prompts"/>
  <int value="3" label="Abusive prompts"/>
  <int value="4" label="Abusive content"/>
  <int value="5" label="Disruptive behavior"/>
</enum>

<enum name="CrowdDenySafeBrowsingVerdict">
  <int value="0" label="Acceptable"/>
  <int value="1" label="Unsolicited notification prompts"/>
</enum>

<enum name="DismissedReason">
  <int value="0" label="DISMISSED_X_BUTTON"/>
  <int value="1" label="DISMISSED_SCRIM"/>
</enum>

<!-- LINT.IfChange(ExternalProtocolScheme) -->

<enum name="ExternalProtocolScheme">
  <int value="0" label="Other"/>
  <int value="1" label="search-ms"/>
  <int value="2" label="search"/>
  <int value="3" label="mailto"/>
  <int value="4" label="microsoft-edge"/>
</enum>

<!-- LINT.ThenChange(/chrome/browser/external_protocol/external_protocol_handler.cc:LoggedScheme) -->

<enum name="HandleStateType">
  <int value="0" label="Launch"/>
  <int value="1" label="Checked launch"/>
  <int value="2" label="Dont launch"/>
  <int value="3" label="Checked dont launch"/>
</enum>

<enum name="OneTimePermissionEvent">
  <summary>One-time permission events.</summary>
  <int value="0" label="Granted one time"/>
  <int value="1" label="Revoked one time grant manually"/>
  <int value="2" label="Expired due to tab closure or discards"/>
  <int value="3" label="Expired in the background due to non-usage"/>
  <int value="4" label="Expired after maximum lifetime"/>
  <int value="5" label="Expired because the device was suspended"/>
</enum>

<enum name="OsScreenAction">
  <int value="0" label="SystemSettings"/>
  <int value="1" label="DismissXButton"/>
  <int value="2" label="DismissScrim"/>
</enum>

<enum name="PageInfoDialogAccessType">
  <int value="0" label="Click on lock without confirmation chip context"/>
  <int value="1" label="Click on lock while confirmation chip is displayed"/>
  <int value="2" label="Click on confirmation chip"/>
  <int value="3"
      label="Click on lock within 20 seconds after confirmation chip collapse"/>
</enum>

<enum name="PermissionAction">
  <int value="0" label="GRANTED"/>
  <int value="1" label="DENIED"/>
  <int value="2" label="DISMISSED"/>
  <int value="3" label="IGNORED"/>
  <int value="4" label="REVOKED"/>
  <int value="5" label="GRANTED_ONCE"/>
</enum>

<enum name="PermissionChangeAction">
  <int value="0" label="Revoked"/>
  <int value="1" label="Reallowed"/>
  <int value="2" label="Reset from denied state"/>
  <int value="3" label="Reset from allowed state"/>
  <int value="4" label="Remember decision checkbox toggled"/>
</enum>

<enum name="PermissionChangeInfo">
  <int value="0" label="Infobar shown, page reloaded, permission used"/>
  <int value="1" label="Infobar shown, page reloaded, permission not used"/>
  <int value="2" label="Infobar shown, no page reloaded, permission used"/>
  <int value="3" label="Infobar shown, no page reloaded, permission not used"/>
  <int value="4" label="Infobar not shown, page reloaded, permission used"/>
  <int value="5" label="Infobar not shown, page reloaded, permission not used"/>
  <int value="6" label="Infobar not shown, no page reloaded, permission used"/>
  <int value="7"
      label="Infobar not shown, no page reloaded, permission not used"/>
</enum>

<enum name="PermissionEmbargoStatus">
  <int value="0" label="NOT_EMBARGOED"/>
  <int value="1" label="BLACKLISTED"/>
  <int value="2" label="REPEATED_DISMISSALS"/>
  <int value="3" label="REPEATED_IGNORES"/>
  <int value="4" label="RECENT_DISPLAY"/>
</enum>

<enum name="PermissionPredictionSource">
  <int value="0" label="ON_DEVICE"/>
  <int value="1" label="SERVER_SIDE"/>
</enum>

<enum name="PermissionPredictionThresholdSource">
  <int value="0" label="MODEL_METADATA"/>
  <int value="1" label="HARDCODED_FALLBACK"/>
</enum>

<enum name="PermissionPromptDismissMethod">
  <int value="0" label="Unspecified"/>
  <int value="1" label="Back navigation"/>
  <int value="2" label="Touching outside the scrim"/>
  <int value="3"
      label="Autodismissed due to dequeuing a prompt after the user
             backgrounds the browser and cleanup has happened."/>
  <int value="4"
      label="Autodismissed after prompt was accepted but OS permission was
             denied"/>
</enum>

<enum name="PermissionRequestIgnoredReason">
  <summary>
    Breaks down reasons for permission requests being categorized as ignored.
    Reasons captured are 0. window containing the tab with the pending
    permission request being closed 1. Tab containing the pending permission
    request being closed 2. Navigation 3. Other: catches all other cases.
  </summary>
  <int value="0" label="Window closed"/>
  <int value="1" label="Tab closed"/>
  <int value="2" label="Navigation"/>
  <int value="3" label="Other"/>
</enum>

<enum name="PermissionSourceUI">
  <int value="0" label="Prompt"/>
  <int value="1" label="Origin info bubble"/>
  <int value="2" label="Site settings"/>
  <int value="3" label="Page action bubble"/>
  <int value="4" label="Permission settings from Android OS"/>
  <int value="5" label="Inline settings as part of the event's UI"/>
  <int value="6" label="Automatic revocation from Safe Browsing"/>
  <int value="7" label="Automatic revocation from Safety Hub"/>
  <int value="8" label="Unidentified source"/>
</enum>

<enum name="PermissionsPolicyConfiguration">
  <int value="0" label="HEADER_NOT_PRESENT_OR_INVALID"/>
  <int value="1" label="FEATURE_NOT_PRESENT"/>
  <int value="2" label="FEATURE_ALLOWLIST_EXPLICITLY_MATCHES_ORIGIN"/>
  <int value="3" label="FEATURE_ALLOWLIST_IS_WILDCARD"/>
  <int value="4" label="FEATURE_ALLOWLIST_IS_NONE"/>
  <int value="5" label="FEATURE_ALLOWLIST_DOES_NOT_MATCH_ORIGIN"/>
</enum>

<enum name="SerialChooserOutcome">
  <int value="0" label="Chooser cancelled"/>
  <int value="1" label="Chooser cancelled, no options available"/>
  <int value="2" label="Permission granted"/>
  <int value="3" label="Ephemeral permission granted"/>
</enum>

<enum name="SerialPermissionRevoked">
  <int value="0" label="Persistent permission revoked by user"/>
  <int value="1" label="Ephemeral permission revoked by user"/>
  <int value="2" label="Ephemeral permission revoked on disconnect"/>
  <int value="3" label="Persistent permission revoked by website"/>
  <int value="4" label="Ephemeral permission revoked by website"/>
</enum>

<enum name="WebHidChooserClosed">
  <int value="0" label="User cancelled"/>
  <int value="1" label="User cancelled, no devices available"/>
  <int value="2" label="Permission granted"/>
  <int value="3" label="Ephemeral permission granted"/>
  <int value="4" label="Dismissed due to loss of focus"/>
</enum>

<enum name="WebSiteSettingsAllSitesAction2">
  <int value="0" label="All Sites Loaded"/>
  <int value="1" label="Reset Site Group Permissions"/>
  <int value="2" label="Reset Origin Permission"/>
  <int value="3" label="Clear All Data"/>
  <int value="4" label="Clear Site Group Data"/>
  <int value="5" label="Clear Origin Data"/>
  <int value="6" label="Enter Site Details"/>
  <int value="7" label="Remove Site Group"/>
  <int value="8" label="Remove Origin"/>
  <int value="9" label="Remove Origin Partitioned"/>
  <int value="10" label="Filter sites by FPS owner"/>
  <int value="11" label="Delete all site entries for a FPS owner"/>
</enum>

</enums>

</histogram-configuration>