<!--
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(ContextMemoryExecutionError) -->

<enum name="ContextMemoryExecutionError">
  <summary>The execution errors for personal context memory requests.</summary>
  <int value="0" label="Unknown"/>
  <int value="1" label="InvalidRequest"/>
  <int value="2" label="RequestThrottled"/>
  <int value="3" label="PermissionDenied"/>
  <int value="4" label="GenericFailure"/>
  <int value="5" label="RetryableError"/>
  <int value="6" label="NonRetryableError"/>
  <int value="7" label="Cancelled"/>
  <int value="8" label="ResponseParseError"/>
</enum>

<!-- LINT.ThenChange(//components/personal_context/core/context_memory_error.h:ExecutionError) -->

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

<enum name="PersonalContextDecryptionStatus">
  <summary>Outcomes for personal context entity decryption attempts.</summary>
  <int value="0" label="Success"/>
  <int value="1" label="NoKeyManager"/>
  <int value="2" label="EmptyEncryptedEntity"/>
  <int value="3" label="DecryptionFailed"/>
  <int value="4" label="ProtoParseFailed"/>
</enum>

<!-- LINT.ThenChange(//components/personal_context/core/personal_context_types.h:PersonalContextDecryptionStatus) -->

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

<enum name="PopupNoticeInteractions">
  <summary>The outcomes of interaction with an Autofill popup notice.</summary>
  <int value="0" label="Shown"/>
  <int value="1" label="Acknowledged"/>
  <int value="2" label="Dismissed"/>
  <int value="3" label="Settings link/button clicked"/>
</enum>

<!-- LINT.ThenChange(//chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java:NoticeInteraction, //chrome/browser/touch_to_fill/autofill/android/internal/java/src/org/chromium/chrome/browser/touch_to_fill/autofill/TouchToFillAutofillMediator.java:NoticeInteraction, //ios/chrome/browser/autofill/autofill_ai/coordinator/ambient_autofill_notice_mediator.mm:PopupNoticeInteractions, //ios/chrome/browser/autofill/model/forms_ai_private_inference_infobar_delegate_ios.mm:PopupNoticeInteractions) -->

</enums>

</histogram-configuration>
