accuracy_tip_status.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2021 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_ACCURACY_TIPS_ACCURACY_TIP_STATUS_H_
  5. #define COMPONENTS_ACCURACY_TIPS_ACCURACY_TIP_STATUS_H_
  6. namespace accuracy_tips {
  7. // Represents the different results of the accuracy check.
  8. // These values are persisted to logs. Entries should not be renumbered and
  9. // numeric values should never be reused.
  10. enum class AccuracyTipStatus {
  11. // No accuracy information for the site.
  12. kNone = 0,
  13. // Site is eligible for showing an accuracy tip.
  14. kShowAccuracyTip = 1,
  15. // The user recently saw an accuracy tip. Accuracy tip elegibility was not
  16. // checked.
  17. kRateLimited = 2,
  18. // The user disabled accuracy tips. Accuracy tip elegibility was not checked.
  19. kOptOut = 3,
  20. // The site is eligible for showing an accuracy tip but the tip wasn't shown
  21. // as the site previously had high engagement from the user.
  22. kHighEnagagement = 4,
  23. // The site is eligible for showing an accuracy tip but the tip wasn't shown
  24. // as the site security state wasn't secure.
  25. kNotSecure = 5,
  26. kMaxValue = kNotSecure,
  27. };
  28. } // namespace accuracy_tips
  29. #endif // COMPONENTS_ACCURACY_TIPS_ACCURACY_TIP_STATUS_H_