#include "net/dns/httpssvc_metrics.h"
#include <string_view>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_functions.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "base/numerics/clamped_math.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "net/base/features.h"
#include "net/dns/dns_util.h"
#include "net/dns/public/dns_protocol.h"
namespace net {
enum HttpssvcDnsRcode TranslateDnsRcodeForHttpssvcExperiment(uint8_t rcode) { … }
HttpssvcMetrics::HttpssvcMetrics(bool secure) : … { … }
HttpssvcMetrics::~HttpssvcMetrics() { … }
void HttpssvcMetrics::SaveForAddressQuery(base::TimeDelta resolve_time,
enum HttpssvcDnsRcode rcode) { … }
void HttpssvcMetrics::SaveAddressQueryFailure() { … }
void HttpssvcMetrics::SaveForHttps(enum HttpssvcDnsRcode rcode,
const std::vector<bool>& condensed_records,
base::TimeDelta https_resolve_time) { … }
std::string HttpssvcMetrics::BuildMetricName(std::string_view leaf_name) const { … }
void HttpssvcMetrics::RecordMetrics() { … }
}