page_load_metrics_initialize.h 864 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2020 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 WEBLAYER_BROWSER_PAGE_LOAD_METRICS_INITIALIZE_H_
  5. #define WEBLAYER_BROWSER_PAGE_LOAD_METRICS_INITIALIZE_H_
  6. #include "base/callback_forward.h"
  7. namespace content {
  8. class WebContents;
  9. }
  10. namespace page_load_metrics {
  11. class PageLoadTracker;
  12. }
  13. namespace weblayer {
  14. void InitializePageLoadMetricsForWebContents(
  15. content::WebContents* web_contents);
  16. // Sets a callback which is called by
  17. // page_load_metrics::PageLoadMetricsEmbedderBase::RegisterEmbedderObservers.
  18. void SetRegisterEmbedderObserversForTesting(
  19. base::RepeatingCallback<void(page_load_metrics::PageLoadTracker*)>*
  20. callback);
  21. } // namespace weblayer
  22. #endif // WEBLAYER_BROWSER_PAGE_LOAD_METRICS_INITIALIZE_H_