chromium/components/page_load_metrics/browser/observers/same_origin_page_load_metrics_observer.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/page_load_metrics/browser/observers/same_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 kHistogramSameOriginFirstContentfulPaint[] =;
constexpr char kHistogramSameOriginLargestContentfulPaint[] =;
constexpr char kHistogramSameOriginFirstInputDelay[] =;
constexpr char kHistogramSameOriginCumulativeLayoutShiftScore[] =;
constexpr char kHistogramSameOriginCumulativeLayoutShiftMainFrame[] =;

}  // namespace

SameOriginPageLoadMetricsObserver::SameOriginPageLoadMetricsObserver() =
    default;

page_load_metrics::PageLoadMetricsObserver::ObservePolicy
SameOriginPageLoadMetricsObserver::OnFencedFramesStart(
    content::NavigationHandle* navigation_handle,
    const GURL& currently_committed_url) {}

page_load_metrics::PageLoadMetricsObserver::ObservePolicy
SameOriginPageLoadMetricsObserver::OnPrerenderStart(
    content::NavigationHandle* navigation_handle,
    const GURL& currently_committed_url) {}

page_load_metrics::PageLoadMetricsObserver::ObservePolicy
SameOriginPageLoadMetricsObserver::OnCommit(
    content::NavigationHandle* navigation_handle) {}

void SameOriginPageLoadMetricsObserver::OnFirstContentfulPaintInPage(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

void SameOriginPageLoadMetricsObserver::OnFirstInputInPage(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

void SameOriginPageLoadMetricsObserver::OnComplete(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

page_load_metrics::PageLoadMetricsObserver::ObservePolicy
SameOriginPageLoadMetricsObserver::FlushMetricsOnAppEnterBackground(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

void SameOriginPageLoadMetricsObserver::RecordTimingHistograms() {}