#include "chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer.h"
#include "base/ranges/algorithm.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
#include "components/page_load_metrics/browser/page_load_metrics_observer_delegate.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom.h"
namespace {
const char kUserDataFieldFilledKey[] = …;
}
FormfillPageLoadMetricsObserver::FormfillPageLoadMetricsObserver() = default;
FormfillPageLoadMetricsObserver::~FormfillPageLoadMetricsObserver() = default;
const char* FormfillPageLoadMetricsObserver::GetObserverName() const { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
FormfillPageLoadMetricsObserver::OnFencedFramesStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
FormfillPageLoadMetricsObserver::OnPrerenderStart(
content::NavigationHandle* navigation_handle,
const GURL& currently_committed_url) { … }
page_load_metrics::PageLoadMetricsObserver::ObservePolicy
FormfillPageLoadMetricsObserver::OnCommit(
content::NavigationHandle* navigation_handle) { … }
void FormfillPageLoadMetricsObserver::DidActivatePrerenderedPage(
content::NavigationHandle* navigation_handle) { … }
void FormfillPageLoadMetricsObserver::OnFeaturesUsageObserved(
content::RenderFrameHost* rfh,
const std::vector<blink::UseCounterFeature>& features) { … }
void FormfillPageLoadMetricsObserver::MaybeRecordPriorUsageOfUserData(
content::NavigationHandle* navigation_handle) { … }