#include "chrome/browser/page_load_metrics/observers/javascript_frameworks_ukm_observer.h"
#include "base/feature_list.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/loader/loading_behavior_flag.h"
#include "third_party/blink/public/mojom/loader/javascript_framework_detection.mojom-forward.h"
JavascriptFrameworksUkmObserver::JavascriptFrameworksUkmObserver() = default;
JavascriptFrameworksUkmObserver::~JavascriptFrameworksUkmObserver() = default;
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
JavascriptFrameworksUkmObserver::OnFencedFramesStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
JavascriptFrameworksUkmObserver::OnPrerenderStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
void JavascriptFrameworksUkmObserver::OnJavaScriptFrameworksObserved(
content::RenderFrameHost* rfh,
const blink::JavaScriptFrameworkDetectionResult& result) { … }
void JavascriptFrameworksUkmObserver::OnComplete(
const page_load_metrics::mojom::PageLoadTiming&) { … }
JavascriptFrameworksUkmObserver::ObservePolicy
JavascriptFrameworksUkmObserver::FlushMetricsOnAppEnterBackground(
const page_load_metrics::mojom::PageLoadTiming&) { … }
void JavascriptFrameworksUkmObserver::RecordJavascriptFrameworkPageLoad() { … }
void JavascriptFrameworksUkmObserver::DidActivatePrerenderedPage(
content::NavigationHandle* navigation_handle) { … }