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

#include <algorithm>

#include "components/page_load_metrics/browser/navigation_handle_user_data.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "content/public/browser/navigation_handle.h"
#include "services/metrics/public/cpp/ukm_source.h"

namespace {

const char kBookmarkBarPrerenderNavigationToActivation[] =;
const char kBookmarkBarNavigationOrActivationToFirstContentfulPaint[] =;
const char kBookmarkBarNavigationOrActivationToFirstMeaningfulPaint[] =;
const char kBookmarkBarNavigationOrActivationToLargestContentfulPaint[] =;
}  // namespace

BookmarkBarMetricsObserver::BookmarkBarMetricsObserver() = default;

BookmarkBarMetricsObserver::~BookmarkBarMetricsObserver() = default;

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

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

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

void BookmarkBarMetricsObserver::DidActivatePrerenderedPage(
    content::NavigationHandle* navigation_handle) {}

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

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

void BookmarkBarMetricsObserver::OnFirstMeaningfulPaintInMainFrameDocument(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}

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

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

void BookmarkBarMetricsObserver::RecordSessionEndHistograms(
    const page_load_metrics::mojom::PageLoadTiming& timing) {}