#ifndef CHROME_BROWSER_NET_SECURE_DNS_UTIL_H_
#define CHROME_BROWSER_NET_SECURE_DNS_UTIL_H_
#include <memory>
#include <vector>
#include "chrome/browser/net/dns_probe_runner.h"
#include "net/dns/public/dns_over_https_config.h"
#include "net/dns/public/doh_provider_entry.h"
#include "services/network/public/cpp/network_context_getter.h"
class PrefRegistrySimple;
class PrefService;
namespace chrome_browser_net::secure_dns {
net::DohProviderEntry::List ProvidersForCountry(
const net::DohProviderEntry::List& providers,
int country_id);
net::DohProviderEntry::List SelectEnabledProviders(
const net::DohProviderEntry::List& providers);
void UpdateValidationHistogram(bool valid);
void UpdateProbeHistogram(bool success);
std::unique_ptr<DnsProbeRunner> MakeProbeRunner(
net::DnsOverHttpsConfig doh_config,
const network::NetworkContextGetter& network_context_getter);
void RegisterProbesSettingBackupPref(PrefRegistrySimple* registry);
void MigrateProbesSettingToOrFromBackup(PrefService* prefs);
}
#endif