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

#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "base/time/time_delta_from_string.h"

#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/ui/android/tab_model/tab_model.h"
#include "chrome/browser/ui/android/tab_model/tab_model_list.h"
#else  // BUILDFLAG(IS_ANDROID)
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#endif  // BUILDFLAG(IS_ANDROID)

#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"

namespace internal {

const char kTabsActiveAbsolutePosition[] =;
const char kTabsActiveRelativePosition[] =;
const char kTabsPageLoadTimeSinceActive[] =;
const char kTabsPageLoadTimeSinceCreated[] =;

}  // namespace internal

namespace {

// TODO(crbug.com/40915391): Create an iterator abstraction that could be reused
// in other places we need to iterate across tabs for both Android and desktop.
std::vector<std::vector<content::WebContents*>> GetAllWebContents() {}

void RecordTimeDeltaHistogram(const char histogram_name[],
                              base::TimeDelta value) {}

}  // namespace

TabStripPageLoadMetricsObserver::TabStripPageLoadMetricsObserver(
    content::WebContents* web_contents) {}

TabStripPageLoadMetricsObserver::~TabStripPageLoadMetricsObserver() = default;

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

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

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

page_load_metrics::PageLoadMetricsObserver::ObservePolicy
TabStripPageLoadMetricsObserver::OnShown() {}