#include "components/page_load_metrics/browser/observers/cross_origin_page_load_metrics_observer.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "content/public/browser/navigation_handle.h"
namespace {
constexpr char kHistogramCrossOriginFirstContentfulPaint[] = …;
constexpr char kHistogramCrossOriginLargestContentfulPaint[] = …;
constexpr char kHistogramCrossOriginFirstInputDelay[] = …;
constexpr char kHistogramCrossOriginCumulativeLayoutShiftScore[] = …;
constexpr char kHistogramCrossOriginCumulativeLayoutShiftMainFrame[] = …;
}
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
CrossOriginPageLoadMetricsObserver::OnFencedFramesStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
CrossOriginPageLoadMetricsObserver::OnPrerenderStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
CrossOriginPageLoadMetricsObserver::OnCommit(
content::NavigationHandle* navigation_handle) { … }
void CrossOriginPageLoadMetricsObserver::OnFirstContentfulPaintInPage(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void CrossOriginPageLoadMetricsObserver::OnFirstInputInPage(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void CrossOriginPageLoadMetricsObserver::OnComplete(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
CrossOriginPageLoadMetricsObserver::FlushMetricsOnAppEnterBackground(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void CrossOriginPageLoadMetricsObserver::RecordTimingHistograms() { … }