<!--
Copyright 2024 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(DataSharingIntentType) -->

<enum name="DataSharingIntentType">
  <int value="0" label="Unspecified"/>
  <int value="1" label="Stop sharing"/>
  <int value="2" label="Leave group"/>
  <int value="3" label="Remove access"/>
  <int value="4" label="Update access"/>
  <int value="5" label="Block user"/>
  <int value="6" label="Remove user"/>
  <int value="7" label="Remove access token"/>
  <int value="8" label="Add access token"/>
  <int value="9" label="Copy link"/>
  <int value="10" label="Block and leave"/>
  <int value="11" label="Open group details"/>
  <int value="12" label="Open learn more url"/>
  <int value="13" label="Accept join and open"/>
  <int value="14" label="Abandoned join"/>
</enum>

<!-- LINT.ThenChange(//chrome/browser/resources/data_sharing/data_sharing_app.ts:DataSharingIntentType) -->

<enum name="DataSharingUserAction">
  <int value="0" label="Share link in share flow"/>
  <int value="1" label="Open learn more url in share flow"/>
  <int value="2" label="Join and open in join flow"/>
  <int value="3" label="Open learn more url in join flow"/>
  <int value="4" label="Share link in manage flow"/>
  <int value="5" label="Leave group in manage flow"/>
  <int value="6" label="Block person in manage flow"/>
  <int value="7" label="Block and leave group in manage flow"/>
  <int value="8" label="Remove person in manage flow"/>
  <int value="9" label="Stop sharing in manage flow"/>
  <int value="10" label="Open learn more url in manage flow"/>
  <int value="11" label="Show activity logs in manage flow"/>
</enum>

<enum name="JoinActionStateAndroid">
  <int value="0" label="Join triggered"/>
  <int value="1" label="Profile available"/>
  <int value="2" label="Parse URL failed"/>
  <int value="3" label="Synced tab group exists"/>
  <int value="4" label="Local tab group exists"/>
  <int value="5" label="Local tab group opened"/>
  <int value="6" label="Local tab group switched"/>
  <int value="7" label="Add member failed"/>
  <int value="8" label="Add member success"/>
  <int value="9" label="Preview permission denied"/>
  <int value="10" label="Preview info fetched"/>
  <int value="11" label="Preview favicons fetched"/>
  <int value="12" label="All favicons fetched"/>
</enum>

<enum name="ShareActionStateAndroid">
  <int value="0" label="Share triggered"/>
  <int value="1" label="Group exists"/>
  <int value="2" label="Ensure visibility failed"/>
  <int value="3" label="Bottom sheet dismissed"/>
  <int value="4" label="Group create success"/>
  <int value="5" label="Group create failed"/>
  <int value="6" label="URL creation failed"/>
  <int value="7" label="Share sheet shown"/>
  <int value="8" label="Share sheet was clicked"/>
  <int value="9" label="Share sheet cancelled"/>
</enum>

</enums>

</histogram-configuration>
