#include "services/network/public/cpp/host_resolver_mojom_traits.h"
#include "base/values.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "net/dns/public/dns_over_https_config.h"
#include "net/dns/public/dns_over_https_server_config.h"
#include "net/dns/public/host_resolver_source.h"
#include "net/dns/public/mdns_listener_update_type.h"
#include "net/dns/public/resolve_error_info.h"
#include "net/dns/public/secure_dns_mode.h"
#include "net/dns/public/secure_dns_policy.h"
#include "services/network/public/cpp/ip_address_mojom_traits.h"
#include "services/network/public/cpp/ip_endpoint_mojom_traits.h"
#include "services/network/public/mojom/host_resolver.mojom-shared.h"
namespace mojo {
Tristate;
HostResolverSource;
MdnsListenerUpdateType;
DnsConfigOverridesDataView;
DnsQueryType;
OptionalSecureDnsMode;
namespace {
Tristate ToTristate(std::optional<bool> optional) { … }
std::optional<bool> FromTristate(Tristate tristate) { … }
OptionalSecureDnsMode ToOptionalSecureDnsMode(
std::optional<net::SecureDnsMode> optional) { … }
std::optional<net::SecureDnsMode> FromOptionalSecureDnsMode(
OptionalSecureDnsMode mode) { … }
}
bool StructTraits<network::mojom::DnsOverHttpsServerConfigDataView,
net::DnsOverHttpsServerConfig>::
Read(network::mojom::DnsOverHttpsServerConfigDataView data,
net::DnsOverHttpsServerConfig* out_server) { … }
bool StructTraits<network::mojom::DnsOverHttpsConfigDataView,
net::DnsOverHttpsConfig>::
Read(network::mojom::DnsOverHttpsConfigDataView data,
net::DnsOverHttpsConfig* out_config) { … }
Tristate StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::
append_to_multi_label_name(const net::DnsConfigOverrides& overrides) { … }
Tristate
StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::rotate(
const net::DnsConfigOverrides& overrides) { … }
Tristate StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::
use_local_ipv6(const net::DnsConfigOverrides& overrides) { … }
OptionalSecureDnsMode
StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::
secure_dns_mode(const net::DnsConfigOverrides& overrides) { … }
Tristate StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::
allow_dns_over_https_upgrade(const net::DnsConfigOverrides& overrides) { … }
bool StructTraits<DnsConfigOverridesDataView, net::DnsConfigOverrides>::Read(
DnsConfigOverridesDataView data,
net::DnsConfigOverrides* out) { … }
DnsQueryType EnumTraits<DnsQueryType, net::DnsQueryType>::ToMojom(
net::DnsQueryType input) { … }
bool EnumTraits<DnsQueryType, net::DnsQueryType>::FromMojom(
DnsQueryType input,
net::DnsQueryType* output) { … }
HostResolverSource
EnumTraits<HostResolverSource, net::HostResolverSource>::ToMojom(
net::HostResolverSource input) { … }
bool EnumTraits<HostResolverSource, net::HostResolverSource>::FromMojom(
HostResolverSource input,
net::HostResolverSource* output) { … }
MdnsListenerUpdateType
EnumTraits<MdnsListenerUpdateType, net::MdnsListenerUpdateType>::ToMojom(
net::MdnsListenerUpdateType input) { … }
bool EnumTraits<MdnsListenerUpdateType, net::MdnsListenerUpdateType>::FromMojom(
MdnsListenerUpdateType input,
net::MdnsListenerUpdateType* output) { … }
network::mojom::SecureDnsMode
EnumTraits<network::mojom::SecureDnsMode, net::SecureDnsMode>::ToMojom(
net::SecureDnsMode secure_dns_mode) { … }
bool EnumTraits<network::mojom::SecureDnsMode, net::SecureDnsMode>::FromMojom(
network::mojom::SecureDnsMode in,
net::SecureDnsMode* out) { … }
network::mojom::SecureDnsPolicy
EnumTraits<network::mojom::SecureDnsPolicy, net::SecureDnsPolicy>::ToMojom(
net::SecureDnsPolicy secure_dns_policy) { … }
bool EnumTraits<network::mojom::SecureDnsPolicy, net::SecureDnsPolicy>::
FromMojom(network::mojom::SecureDnsPolicy in, net::SecureDnsPolicy* out) { … }
}