chromium/chrome/browser/page_load_metrics/observers/preview_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 "chrome/browser/page_load_metrics/observers/preview_page_load_metrics_observer.h"

#include "base/metrics/histogram_functions.h"
#include "build/build_config.h"
#include "components/page_load_metrics/browser/page_load_metrics_observer_delegate.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "content/public/browser/navigation_handle.h"

#if !BUILDFLAG(IS_ANDROID)
#include "chrome/browser/preloading/preview/preview_manager.h"
#endif

PreviewPageLoadMetricsObserver::ObservePolicy
PreviewPageLoadMetricsObserver::OnStart(
    content::NavigationHandle* navigation_handle,
    const GURL& currently_committed_url,
    bool started_in_foreground) {}

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

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

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

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

PreviewPageLoadMetricsObserver::ObservePolicy
PreviewPageLoadMetricsObserver::OnHidden(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

PreviewPageLoadMetricsObserver::ObservePolicy
PreviewPageLoadMetricsObserver::OnShown() {}

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

void PreviewPageLoadMetricsObserver::DidActivatePreviewedPage(
    base::TimeTicks activation_time) {}

PreviewPageLoadMetricsObserver::PageVisitType
PreviewPageLoadMetricsObserver::RecordPageVisitType() {}

void PreviewPageLoadMetricsObserver::RecordMetrics() {}

void PreviewPageLoadMetricsObserver::CheckPageTransitionType(
    content::NavigationHandle* navigation_handle) {}

PreviewPageLoadMetricsObserver::PreviewFinalStatus
PreviewPageLoadMetricsObserver::ConvertStatusToPreviewFinalStatus(
    PreviewPageLoadMetricsObserver::Status status) {}