<!--
Copyright 2026 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
chromium-metrics-reviews@google.com.
-->

<histogram-configuration>

<!-- Enum types -->

<enums>

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

<enum name="CBORDecoderError">
  <int value="0" label="CBOR_NO_ERROR (Success)"/>
  <int value="1" label="UNSUPPORTED_MAJOR_TYPE"/>
  <int value="2" label="UNKNOWN_ADDITIONAL_INFO"/>
  <int value="3" label="INCOMPLETE_CBOR_DATA"/>
  <int value="4" label="INCORRECT_MAP_KEY_TYPE"/>
  <int value="5" label="TOO_MUCH_NESTING"/>
  <int value="6" label="INVALID_UTF8"/>
  <int value="7" label="EXTRANEOUS_DATA"/>
  <int value="8" label="OUT_OF_ORDER_KEY"/>
  <int value="9" label="NON_MINIMAL_CBOR_ENCODING"/>
  <int value="10" label="UNSUPPORTED_SIMPLE_VALUE"/>
  <int value="11" label="UNSUPPORTED_FLOATING_POINT_VALUE"/>
  <int value="12" label="OUT_OF_RANGE_INTEGER_VALUE"/>
  <int value="13" label="DUPLICATE_KEY"/>
  <int value="14" label="UNKNOWN_ERROR"/>
</enum>

<!-- LINT.ThenChange(//components/cbor/reader.h:DecoderError) -->

</enums>

</histogram-configuration>
