chromium/tools/metrics/histograms/metadata/omnibox/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="ActionInSuggestType">
  <summary>The type of Omnibox Action in Suggest.</summary>
  <int value="0" label="Unknown"/>
  <int value="1" label="Call"/>
  <int value="2" label="Directions"/>
  <int value="3" label="Website"/>
  <int value="4" label="Reviews"/>
</enum>

<enum name="BooleanNavigated">
  <int value="0" label="Navigation did not occur"/>
  <int value="1" label="Navigation occurred"/>
</enum>

<enum name="BooleanNonNull">
  <int value="0" label="Null"/>
  <int value="1" label="Non-null"/>
</enum>

<enum name="BooleanOffered">
  <int value="0" label="Not offered"/>
  <int value="1" label="Offered"/>
</enum>

<enum name="BooleanOffTheRecord">
  <int value="0" label="Regular"/>
  <int value="1" label="Off the record"/>
</enum>

<enum name="DocumentProviderAllowedReason">
  <int value="0" label="Allowed"/>
  <int value="1" label="Unknown"/>
  <int value="2" label="Not allowed because feature disabled"/>
  <int value="3" label="Not allowed because the suggest setting is disabled"/>
  <int value="4" label="Not allowed because the Drive setting is disabled"/>
  <int value="5" label="Not allowed because the profile is off the record"/>
  <int value="6" label="Not allowed because the user is not logged in"/>
  <int value="7" label="Not allowed because the user is not Syncing"/>
  <int value="8" label="Not allowed because the server requested backoff"/>
  <int value="9" label="Not allowed because Google is not the DSE"/>
  <int value="10" label="Not allowed because the input is a focus or is empty"/>
  <int value="11" label="Not allowed because the input length is too short"/>
  <int value="12" label="Not allowed because the input looks like a URL"/>
</enum>

<enum name="DocumentSuggestRequestEvent">
  <int value="1" label="requests sent">Request was sent.</int>
  <int value="2" label="requests invalidated">
    Request was invalidated (cancelled because URLLoader was deleted before the
    callback was invoked).
  </int>
  <int value="3" label="responses received">
    Response was received asynchronously.
  </int>
</enum>

<enum name="GroupId">
  <summary>
    Suggestion group IDs toggled visible or hidden in the omnibox result list.
    Reflects the omnibox::GroupId enum values for the Polaris zero-prefix
    suggestions in //third_party/omnibox_proto/groups.proto.
  </summary>
  <int value="0" label="UNKNOWN (uncategorized)"/>
  <int value="1" label="INVALID (unexpected)"/>
  <int value="2" label="GROUP_PREVIOUS_SEARCH_RELATED"/>
  <int value="3" label="GROUP_PREVIOUS_SEARCH_RELATED_ENTITY_CHIPS"/>
  <int value="4" label="GROUP_TRENDS"/>
  <int value="5" label="GROUP_TRENDS_ENTITY_CHIPS"/>
  <int value="6" label="GROUP_RELATED_QUERIES"/>
  <int value="7" label="GROUP_VISITED_DOC_RELATED"/>
</enum>

<enum name="HistoryClusterKeywordType">
  <int value="0" label="Unknown"/>
  <int value="1" label="EntityCategory"/>
  <int value="2" label="EntityAlias"/>
  <int value="3" label="Entity"/>
  <int value="4" label="SearchTerms"/>
</enum>

<enum name="OmniboxBuiltinEngineType">
  <int value="0" label="Non built-in engine"/>
  <int value="1" label="Prepopulated Engine"/>
  <int value="2" label="@bookmarks starter pack engine"/>
  <int value="3" label="@history starter pack engine"/>
  <int value="4" label="@tabs starter pack engine"/>
  <int value="5" label="@gemini starter pack engine"/>
</enum>

<enum name="OmniboxEnteredKeywordMode2">
  <int value="0" label="invalid"/>
  <int value="1" label="via tab"/>
  <int value="2" label="via space at end"/>
  <int value="3" label="via space in middle"/>
  <int value="4" label="keyboard shortcut"/>
  <int value="5" label="question mark"/>
  <int value="6" label="mouse click on hint view"/>
  <int value="7" label="tap gesture on hint view"/>
  <int value="8" label="select suggestion"/>
</enum>

<enum name="OmniboxEscapeAction">
  <int value="0"
      label="Deprecated: None; omnibox state unaffected - No longer logged
             since m105"/>
  <int value="1" label="Reverted temporary Text"/>
  <int value="2" label="Closed popup"/>
  <int value="3" label="Cleared user input"/>
  <int value="4" label="Closed popup and cleared user input"/>
  <int value="5" label="Blurred"/>
</enum>

<enum name="OmniboxInputType">
  <int value="0" label="empty"/>
  <int value="1" label="unknown"/>
  <int value="2" label="deprecated: requested url"/>
  <int value="3" label="url"/>
  <int value="4" label="query"/>
  <int value="5" label="forced query"/>
</enum>

<enum name="OmniboxRichAutocompletionType">
  <int value="0" label="None"/>
  <int value="1" label="URL non-prefix"/>
  <int value="2" label="Title prefix"/>
  <int value="3" label="Title non-prefix"/>
  <int value="4" label="Shortcut text prefix"/>
</enum>

<enum name="ReconciliationType">
  <int value="0" label="No Reconciliation"/>
  <int value="1" label="By prepopulate_id"/>
  <int value="2" label="By keyword"/>
  <int value="3" label="By domain based keyword"/>
</enum>

<enum name="RegulatoryExtensionVariant">
  <int value="0" label="Default extension"/>
  <int value="1" label="Android EEA"/>
</enum>

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

<enum name="SearchPrefetchCacheAliasFallbackReason">
  <int value="0" label="kNoFallback"/>
  <int value="1" label="kNoResponseHeaders"/>
  <int value="2" label="kNon2xxResponse"/>
  <int value="3" label="kRedirectResponse"/>
  <int value="4" label="kErrorOnComplete"/>
  <int value="5" label="kMojoDisconnect"/>
</enum>

<!-- LINT.ThenChange(//chrome/browser/preloading/prefetch/search_prefetch/cache_alias_search_prefetch_url_loader.h:FallbackReason) -->

<enum name="SearchPrefetchEligibilityReason">
  <int value="0" label="Prefetch started"/>
  <int value="1" label="User disabled prefetch/preconnect"/>
  <int value="2" label="User disabled Javascript"/>
  <int value="3" label="Search engine not set"/>
  <int value="4" label="Navigation URL was not a default search URL"/>
  <int value="5" label="Recent network error"/>
  <int value="6" label="Duplicate prefetch request"/>
  <int value="7" label="Too many recent prefetches"/>
  <int value="8" label="Throttle prevented the prefetch"/>
  <int value="9" label="SlowNetwork suppressed the prefetch"/>
</enum>

<enum name="SearchPrefetchResponseDataReaderStatus">
  <int value="0" label="kCreated"/>
  <int value="1" label="kServingError"/>
  <int value="2" label="kNetworkError"/>
  <int value="3" label="kCompleted"/>
  <int value="4" label="kCanceledByLoader"/>
</enum>

<enum name="SearchPrefetchServingReason">
  <int value="0" label="Served a prefetch response"/>
  <int value="1" label="Search engine not set"/>
  <int value="2" label="User disabled Javascript"/>
  <int value="3" label="Navigation URL was not a default search URL"/>
  <int value="4" label="No prefetch issued for the search terms"/>
  <int value="5" label="Prefetch was for a different origin"/>
  <int value="6" label="Prefetch request was cancelled (Obsolete)"/>
  <int value="7" label="Prefetch request failed"/>
  <int value="8" label="Another reason (unexpected)"/>
  <int value="9" label="POST, reload, form, link, or other non-cache loads."/>
  <int value="10"
      label="A prerender navigation request has taken this response away
             (Obsolete)."/>
</enum>

<enum name="SearchPrefetchStatus">
  <int value="0" label="Not started"/>
  <int value="1" label="In flight"/>
  <int value="2" label="Headers received (for streaming responses)"/>
  <int value="3"
      label="Headers received and user navigated to search terms (for
             streaming responses) (Obsolete)"/>
  <int value="4" label="Completed the prefetch"/>
  <int value="5" label="Request failed"/>
  <int value="6" label="Request cancelled (Obsolete)"/>
  <int value="7" label="Prefetch request served for real navigation"/>
  <int value="8" label="Was served to prerender navigation stack (Obsolete)"/>
  <int value="9"
      label="Serving to prerender navigation stack and user navigated to
             search terms (Obsolete)"/>
  <int value="10" label="Upgraded to prerender and succeeded (Obsolete)"/>
</enum>

<enum name="SearchPreloadForwardingResult">
  <int value="0" label="kNotServed (should not be recorded)"/>
  <int value="1" label="kStartedServing"/>
  <int value="2" label="kFailed"/>
  <int value="3" label="kCompleted"/>
</enum>

<enum name="SearchSuggestRequestEvent">
  <int value="1" label="requests sent">Request was sent.</int>
  <int value="2" label="requests invalidated">
    Request was invalidated (cancelled because URLLoader was deleted before the
    callback was invoked).
  </int>
  <int value="3" label="responses received">
    Response was received asynchronously.
  </int>
</enum>

<enum name="SuggestionAnswerOptionalType">
  <summary>
    Type of Answer in omnibox suggestion list or No Answer, if not an answer.
  </summary>
  <int value="0" label="No Answer"/>
  <int value="1" label="Dictionary"/>
  <int value="2" label="Finance"/>
  <int value="3" label="Knowledge graph"/>
  <int value="4" label="Local"/>
  <int value="5" label="Sports"/>
  <int value="6" label="Sunrise"/>
  <int value="7" label="Translation"/>
  <int value="8" label="Weather"/>
  <int value="9" label="When is"/>
  <int value="10" label="Currency"/>
  <int value="11" label="Local time"/>
  <int value="12" label="Play install"/>
</enum>

<enum name="SuggestionAnswerType">
  <summary>Type of Answer shown in omnibox suggestion list.</summary>
  <int value="0" label="Invalid (unknown type)"/>
  <int value="1" label="Dictionary"/>
  <int value="2" label="Finance"/>
  <int value="3" label="Knowledge graph"/>
  <int value="4" label="Local"/>
  <int value="5" label="Sports"/>
  <int value="6" label="Sunrise"/>
  <int value="7" label="Translation"/>
  <int value="8" label="Weather"/>
  <int value="9" label="When is"/>
  <int value="10" label="Currency"/>
  <int value="11" label="Local time"/>
  <int value="12" label="Play install"/>
</enum>

<enum name="SuggestionPedalType">
  <summary>
    Type of pedal shown or selected in the omnibox suggestion list.
  </summary>
  <int value="0" label="None"/>
  <int value="1" label="Clear browsing data"/>
  <int value="2" label="Manage passwords"/>
  <int value="3" label="Update credit card"/>
  <int value="4" label="Launch incognito"/>
  <int value="5" label="Translate"/>
  <int value="6" label="Update Chrome"/>
  <int value="7" label="Run Chrome safety check"/>
  <int value="8" label="Manage security settings"/>
  <int value="9" label="Manage cookies"/>
  <int value="10" label="Manage addresses"/>
  <int value="11" label="Manage sync"/>
  <int value="12" label="Manage site settings"/>
  <int value="13" label="Create Google doc"/>
  <int value="14" label="Create Google sheet"/>
  <int value="15" label="Create Google slide"/>
  <int value="16" label="Create Google calendar event"/>
  <int value="17" label="Create Google site"/>
  <int value="18" label="Create Google keep note"/>
  <int value="19" label="Create Google form"/>
  <int value="20" label="Compose email in Gmail"/>
  <int value="21" label="See Chrome tips"/>
  <int value="22" label="Manage Google account"/>
  <int value="23" label="Clear YouTube history"/>
  <int value="24" label="Change Google password"/>
  <int value="25" label="Incognito-mode clear browsing data"/>
  <int value="26" label="Close Incognito windows"/>
  <int value="27" label="Play Chrome Dino game"/>
  <int value="28" label="Find my phone"/>
  <int value="29" label="Manage Google privacy"/>
  <int value="30" label="Manage Google ad settings"/>
  <int value="31" label="Manage Chrome settings"/>
  <int value="32" label="Manage Chrome downloads"/>
  <int value="33" label="View Chrome history"/>
  <int value="34" label="Share this page"/>
  <int value="35" label="Manage Chrome accessibility"/>
  <int value="36" label="Customize Chrome fonts"/>
  <int value="37" label="Manage Chrome themes"/>
  <int value="38" label="Customize search engines"/>
  <int value="39" label="Manage ChromeOS accessibility"/>
  <int value="40" label="Set Chrome as default browser"/>
</enum>

<enum name="SuggestRequestType">
  <int value="0" label="search suggestion"/>
  <int value="1" label="search suggestion warm-up"/>
  <int value="2" label="search suggestion for images"/>
  <int value="3" label="zero-prefix suggestion"/>
  <int value="4" label="zero-prefix suggestion prefetching"/>
  <int value="5" label="document suggestion"/>
  <int value="6" label="suggestion deletion"/>
</enum>

<enum name="ZeroSuggestEligibility">
  <int value="0" label="Eligible for current context and external conditions">
    Zero-prefix suggestions are eligible.
  </int>
  <int value="1" label="Remote request without page URL ineligible">
    Suggest request without sending the current page URL cannot be made. E.g.,
    the user is in incognito mode or Google is not set as the default search
    provider.
  </int>
  <int value="2" label="Remote request with sending page URL ineligible">
    Suggest request with sending the current page URL cannot be made. E.g., the
    user has not consented and the page is not the SRP associated with the
    default search provider.
  </int>
  <int value="3" label="Generally ineligible in current context">
    Zero-prefix suggestions are not eligible in the given context. E.g., due to
    the page classification, focus type, input type, or an invalid page URL.
  </int>
</enum>

<enum name="ZeroSuggestRequestEvent">
  <int value="0" label="cached response converted to results">
    Cached response was synchronously converted to displayed matches.
  </int>
  <int value="1" label="request sent">Request was sent.</int>
  <int value="2" label="request invalidated">
    Request was invalidated (cancelled because URLLoader was deleted before the
    callback was invoked).
  </int>
  <int value="3" label="response received">
    Response was received asynchronously.
  </int>
  <int value="4" label="response cached">Response was cached.</int>
  <int value="5" label="response converted to results">
    Response was converted to displayed matches. This can happen if the
    displayed result set is empty and the response result set is non-empty; or
    vice versa.
  </int>
</enum>

</enums>

</histogram-configuration>