page_visit_final_status.h 1.1 KB

1234567891011121314151617181920212223242526
  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_PAGE_LOAD_METRICS_COMMON_PAGE_VISIT_FINAL_STATUS_H_
  5. #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_VISIT_FINAL_STATUS_H_
  6. namespace page_load_metrics {
  7. // This enum represents the status of a page visit: abort, non-abort, or
  8. // neither. A page is of type NEVER_FOREGROUND if it was never in the
  9. // foreground. A page is of type ABORT if it was in the foreground at some
  10. // point but did not reach FCP. A page is of type REACHED_FCP if it was in the
  11. // foreground at some point and reached FCP. These values are persisted to logs.
  12. // Entries should not be renumbered and numeric values should never be reused.
  13. // For any additions, also update the corresponding enum in enums.xml.
  14. enum class PageVisitFinalStatus {
  15. kNeverForegrounded = 0,
  16. kAborted = 1,
  17. kReachedFCP = 2,
  18. kMaxValue = kReachedFCP,
  19. };
  20. } // namespace page_load_metrics
  21. #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_VISIT_FINAL_STATUS_H_