<!--
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="BrowsingTopicsApiActionType">
<int value="0" label="get via document api"/>
<int value="1" label="get and observe via document api"/>
<int value="2" label="get via fetch-like api"/>
<int value="3" label="observe via fetch-like api"/>
<int value="4" label="get via iframe attribute api"/>
<int value="5" label="observe via iframe attribute api"/>
</enum>
<enum name="BrowsingTopicsCalculatorResultStatus">
<int value="0" label="Success"/>
<int value="1" label="Failure: permission denied"/>
<int value="2" label="Failure: api usage context query error"/>
<int value="3" label="Failure: annotation execution error"/>
<int value="4"
label="Failure: taxonomy version not supported in the Chrome binary"/>
<int value="5" label="Hanging: after api usage requested"/>
<int value="6" label="Hanging: after history requested"/>
<int value="7" label="Hanging: after model requested"/>
<int value="8" label="Hanging: after annotation requested"/>
<int value="9"
label="Terminated: explicitly canceled, or due to browser shutdown"/>
</enum>
<enum name="BrowsingTopicsFetchRequestOrRedirectResult">
<int value="0" label="Success."/>
<int value="1"
label="Failure: Disallowed by content client (incognito, user opt-out,
etc.)."/>
<int value="2" label="Failure: Initiator frame doesn't exist."/>
<int value="3" label="Failure: From fenced frame."/>
<int value="4"
label="Failure: From non-primary page (other than fenced frame)."/>
<int value="5" label="Failure: Opaque caller origin."/>
<int value="6"
label="Failure: Non-secure caller origin (other than opaque origin)."/>
<int value="7" label="Failure: Disallowed by permissions policy."/>
</enum>
<enum name="BrowsingTopicsNumberOfTopics">
<summary>
The number of topics returned by the Topics API. This enum type is used for
histograms when they want to set up Chirp alert on bucket proportion, as
Chirp lacks bucket proportion monitoring for numeric types.
</summary>
<int value="0" label="0"/>
<int value="1" label="1"/>
<int value="2" label="2"/>
<int value="3" label="3"/>
</enum>
<enum name="BrowsingTopicsOverrideListFileLoadResult">
<int value="0" label="Unknown"/>
<int value="1" label="Success"/>
<int value="2" label="Could not read file"/>
<int value="3" label="Could not uncompress file"/>
<int value="4" label="Could not unmarshal the encoded protobuf"/>
</enum>
</enums>
</histogram-configuration>