page_load_timing.h 1017 B

1234567891011121314151617181920212223242526
  1. // Copyright 2015 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_LOAD_TIMING_H_
  5. #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_
  6. #include "components/page_load_metrics/common/page_load_metrics.mojom.h"
  7. #include "third_party/blink/public/common/loader/loading_behavior_flag.h"
  8. namespace page_load_metrics {
  9. // Initialize an empty PageLoadTiming with initialized empty sub-members.
  10. mojom::PageLoadTimingPtr CreatePageLoadTiming();
  11. bool IsEmpty(const mojom::DocumentTiming& timing);
  12. bool IsEmpty(const mojom::PaintTiming& timing);
  13. bool IsEmpty(const mojom::ParseTiming& timing);
  14. bool IsEmpty(const mojom::PageLoadTiming& timing);
  15. bool IsEmpty(const mojom::InteractiveTiming& timing);
  16. void InitPageLoadTimingForTest(mojom::PageLoadTiming* timing);
  17. } // namespace page_load_metrics
  18. #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_