#include "chrome/browser/page_load_metrics/observers/document_write_page_load_metrics_observer.h"
#include "chrome/browser/browser_process.h"
#include "components/page_load_metrics/browser/page_load_metrics_util.h"
#include "third_party/blink/public/common/loader/loading_behavior_flag.h"
namespace internal {
const char kHistogramDocWriteBlockFirstContentfulPaint[] = …;
const char kHistogramDocWriteBlockParseStartToFirstContentfulPaint[] = …;
const char kHistogramDocWriteBlockParseBlockedOnScriptLoad[] = …;
const char kBackgroundHistogramDocWriteBlockParseBlockedOnScriptLoad[] = …;
}
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
DocumentWritePageLoadMetricsObserver::OnFencedFramesStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
DocumentWritePageLoadMetricsObserver::OnPrerenderStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
void DocumentWritePageLoadMetricsObserver::OnFirstContentfulPaintInPage(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void DocumentWritePageLoadMetricsObserver::OnParseStop(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void DocumentWritePageLoadMetricsObserver::
LogDocumentWriteBlockFirstContentfulPaint(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }
void DocumentWritePageLoadMetricsObserver::LogDocumentWriteBlockParseStop(
const page_load_metrics::mojom::PageLoadTiming& timing) { … }