#include "chrome/browser/page_load_metrics/observers/non_tab_webui_page_load_metrics_observer.h"
#include "base/strings/strcat.h"
#include "base/trace_event/named_trigger.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_preload_manager.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "content/public/common/url_constants.h"
namespace chrome {
const char kNonTabWebUINavigationToLCPHistogramName[] = …;
const char kNonTabWebUINavigationToFCPHistogramName[] = …;
const char kNonTabWebUIRequestToFCPHistogramName[] = …;
std::string GetSuffixedLCPHistogram(std::string_view webui_name) { … }
std::string GetSuffixedFCPHistogram(std::string_view webui_name) { … }
std::string GetSuffixedRequestToFCPHistogram(std::string_view webui_name) { … }
NonTabPageLoadMetricsObserver::NonTabPageLoadMetricsObserver(
const std::string& webui_name)
: … { … }
void NonTabPageLoadMetricsObserver::OnFirstContentfulPaintInPage(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void NonTabPageLoadMetricsObserver::OnComplete(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
NonTabPageLoadMetricsObserver::OnFencedFramesStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
NonTabPageLoadMetricsObserver::OnPrerenderStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
NonTabPageLoadMetricsObserver::ShouldObserveScheme(const GURL& url) const { … }
}