#ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_OBSERVER_H_
#define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_OBSERVER_H_
#include <optional>
#include "components/page_load_metrics/browser/page_load_metrics_observer.h"
#include "content/public/browser/preloading_trigger_type.h"
namespace internal {
extern const char kHistogramPrerenderNavigationToActivation[];
extern const char kHistogramPrerenderActivationToFirstPaint[];
extern const char kHistogramPrerenderActivationToFirstContentfulPaint[];
extern const char kHistogramPrerenderActivationToLargestContentfulPaint2[];
extern const char kHistogramPrerenderFirstInputDelay4[];
extern const char kHistogramPrerenderCumulativeShiftScore[];
extern const char kHistogramPrerenderCumulativeShiftScoreMainFrame[];
extern const char
kHistogramPrerenderMaxCumulativeShiftScoreSessionWindowGap1000msMax5000ms2
[];
extern const char
kHistogramPrerenderAverageUserInteractionLatencyOverBudgetMaxEventDuration
[];
extern const char kHistogramPrerenderNumInteractions[];
extern const char
kHistogramPrerenderUserInteractionLatencyHighPercentile2MaxEventDuration[];
extern const char
kHistogramPrerenderWorstUserInteractionLatencyMaxEventDuration[];
extern const char kPageLoadPrerenderObserverEvent[];
enum class PageLoadPrerenderObserverEvent { … };
}
namespace page_load_metrics {
struct ExtraRequestCompleteInfo;
}
namespace net {
enum Error;
}
class PrerenderPageLoadMetricsObserver
: public page_load_metrics::PageLoadMetricsObserver { … };
#endif