canonical_url_share_metrics_types.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_UI_METRICS_CANONICAL_URL_SHARE_METRICS_TYPES_H_
  5. #define COMPONENTS_UI_METRICS_CANONICAL_URL_SHARE_METRICS_TYPES_H_
  6. namespace ui_metrics {
  7. // The histogram key to report the result of the Canonical URL retrieval.
  8. const char kCanonicalURLResultHistogram[] = "Mobile.CanonicalURLResult";
  9. // Used to report the result of the retrieval of the Canonical URL.
  10. // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.ui_metrics
  11. enum CanonicalURLResult {
  12. // The canonical URL retrieval failed because the visible URL is not HTTPS.
  13. FAILED_VISIBLE_URL_NOT_HTTPS = 0,
  14. // Deprecated.
  15. FAILED_CANONICAL_URL_NOT_HTTPS_DEPRECATED,
  16. // The canonical URL retrieval failed because the page did not define one.
  17. FAILED_NO_CANONICAL_URL_DEFINED,
  18. // The canonical URL retrieval failed because the page's canonical URL was
  19. // invalid.
  20. FAILED_CANONICAL_URL_INVALID,
  21. // The canonical URL retrieval succeeded. The retrieved canonical URL is
  22. // different from the visible URL.
  23. SUCCESS_CANONICAL_URL_DIFFERENT_FROM_VISIBLE,
  24. // The canonical URL retrieval succeeded. The retrieved canonical URL is the
  25. // same as the visible URL.
  26. SUCCESS_CANONICAL_URL_SAME_AS_VISIBLE,
  27. // The canonical URL retrieval succeeded. The canonical URL is not HTTPS
  28. // (but the visible URL is).
  29. SUCCESS_CANONICAL_URL_NOT_HTTPS,
  30. // The count of canonical URL results. This must be the last item in the enum.
  31. CANONICAL_URL_RESULT_COUNT
  32. };
  33. } // namespace ui_metrics
  34. #endif // COMPONENTS_UI_METRICS_CANONICAL_URL_SHARE_METRICS_TYPES_H_