chromium/components/security_interstitials/core/https_only_mode_metrics.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

const char kEventHistogram[] =;
const char kEventHistogramWithEngagementHeuristic[] =;

const char kNavigationRequestSecurityLevelHistogram[] =;

const char kSiteEngagementHeuristicStateHistogram[] =;

const char kSiteEngagementHeuristicHostCountHistogram[] =;

const char kSiteEngagementHeuristicAccumulatedHostCountHistogram[] =;

const char kSiteEngagementHeuristicEnforcementDurationHistogram[] =;

const char kInterstitialReasonHistogram[] =;

// TODO(crbug.com/40248833): Rename these metrics now that they apply to both
// HTTPS-First Mode and HTTPS Upgrades.
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) {}

}  // namespace security_interstitials::https_only_mode