#include "components/security_interstitials/core/https_only_mode_metrics.h"
#include "base/metrics/histogram_functions.h"
namespace security_interstitials::https_only_mode {
namespace {
InterstitialReason GetInterstitialReason(
const HttpInterstitialState& interstitial_state) { … }
}
const char kEventHistogram[] = …;
const char kEventHistogramWithEngagementHeuristic[] = …;
const char kNavigationRequestSecurityLevelHistogram[] = …;
const char kSiteEngagementHeuristicStateHistogram[] = …;
const char kSiteEngagementHeuristicHostCountHistogram[] = …;
const char kSiteEngagementHeuristicAccumulatedHostCountHistogram[] = …;
const char kSiteEngagementHeuristicEnforcementDurationHistogram[] = …;
const char kInterstitialReasonHistogram[] = …;
void RecordHttpsFirstModeNavigation(
Event event,
const HttpInterstitialState& interstitial_state) { … }
void RecordNavigationRequestSecurityLevel(
NavigationRequestSecurityLevel level) { … }
void RecordSiteEngagementHeuristicState(SiteEngagementHeuristicState state) { … }
void RecordSiteEngagementHeuristicCurrentHostCounts(size_t current_count,
size_t accumulated_count) { … }
void RecordSiteEngagementHeuristicEnforcementDuration(
base::TimeDelta enforcement_duration) { … }
void RecordInterstitialReason(const HttpInterstitialState& interstitial_state) { … }
}