chromium/out/Default/gen/services/network/public/mojom/host_resolver.mojom.cc

// services/network/public/mojom/host_resolver.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

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

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "services/network/public/mojom/host_resolver.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "services/network/public/mojom/host_resolver.mojom-params-data.h"
#include "services/network/public/mojom/host_resolver.mojom-shared-message-ids.h"

#include "services/network/public/mojom/host_resolver.mojom-import-headers.h"
#include "services/network/public/mojom/host_resolver.mojom-test-utils.h"
#include "net/cert/cert_verify_result.h"


namespace network::mojom {
DnsOverHttpsServerConfig::DnsOverHttpsServerConfig()
    :{}

DnsOverHttpsServerConfig::DnsOverHttpsServerConfig(
    const std::string& server_template_in,
    std::vector<std::vector<::net::IPAddress>> endpoints_in)
    :{}

DnsOverHttpsServerConfig::~DnsOverHttpsServerConfig() = default;

void DnsOverHttpsServerConfig::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool DnsOverHttpsServerConfig::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
DnsOverHttpsConfig::DnsOverHttpsConfig()
    :{}

DnsOverHttpsConfig::DnsOverHttpsConfig(
    std::vector<::net::DnsOverHttpsServerConfig> servers_in)
    :{}

DnsOverHttpsConfig::~DnsOverHttpsConfig() = default;

void DnsOverHttpsConfig::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool DnsOverHttpsConfig::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
DnsConfigOverrides::DnsConfigOverrides()
    :{}

DnsConfigOverrides::DnsConfigOverrides(
    std::optional<std::vector<::net::IPEndPoint>> nameservers_in,
    std::optional<std::vector<std::string>> search_in,
    DnsConfigOverrides::Tristate append_to_multi_label_name_in,
    int8_t ndots_in,
    std::optional<::base::TimeDelta> fallback_period_in,
    int32_t attempts_in,
    DnsConfigOverrides::Tristate rotate_in,
    DnsConfigOverrides::Tristate use_local_ipv6_in,
    const std::optional<::net::DnsOverHttpsConfig>& dns_over_https_config_in,
    OptionalSecureDnsMode secure_dns_mode_in,
    DnsConfigOverrides::Tristate allow_dns_over_https_upgrade_in,
    bool clear_hosts_in)
    :{}

DnsConfigOverrides::~DnsConfigOverrides() = default;

void DnsConfigOverrides::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool DnsConfigOverrides::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
ResolveHostParameters::ResolveHostParameters()
    :{}

ResolveHostParameters::ResolveHostParameters(
    ::net::DnsQueryType dns_query_type_in,
    ::net::RequestPriority initial_priority_in,
    ::net::HostResolverSource source_in,
    ResolveHostParameters::CacheUsage cache_usage_in,
    ::mojo::PendingReceiver<ResolveHostHandle> control_handle_in,
    bool include_canonical_name_in,
    bool loopback_only_in,
    bool is_speculative_in,
    SecureDnsPolicy secure_dns_policy_in,
    ResolveHostParameters::Purpose purpose_in)
    :{}

ResolveHostParameters::~ResolveHostParameters() = default;

void ResolveHostParameters::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ResolveHostParameters::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HostResolverHost::HostResolverHost() :{}

HostResolverHost::~HostResolverHost() {}


void HostResolverHost::set_scheme_host_port(
    const ::url::SchemeHostPort& scheme_host_port) {}
void HostResolverHost::set_host_port_pair(
    const ::net::HostPortPair& host_port_pair) {}

void HostResolverHost::DestroyActive() {}

bool HostResolverHost::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char ResolveHostHandle::Name_[] =;

ResolveHostHandle::IPCStableHashFunction ResolveHostHandle::MessageToMethodInfo_(mojo::Message& message) {}


const char* ResolveHostHandle::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ResolveHostHandle::Cancel_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

ResolveHostHandleProxy::ResolveHostHandleProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ResolveHostHandleProxy::Cancel(
    int32_t in_result) {}

// static
bool ResolveHostHandleStubDispatch::Accept(
    ResolveHostHandle* impl,
    mojo::Message* message) {}

// static
bool ResolveHostHandleStubDispatch::AcceptWithResponder(
    ResolveHostHandle* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kResolveHostHandleValidationInfo[] =;

bool ResolveHostHandleRequestValidator::Accept(mojo::Message* message) {}

const char ResolveHostClient::Name_[] =;

ResolveHostClient::IPCStableHashFunction ResolveHostClient::MessageToMethodInfo_(mojo::Message& message) {}


const char* ResolveHostClient::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ResolveHostClient::OnComplete_Sym::IPCStableHash() {}
uint32_t ResolveHostClient::OnTextResults_Sym::IPCStableHash() {}
uint32_t ResolveHostClient::OnHostnameResults_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

ResolveHostClientProxy::ResolveHostClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ResolveHostClientProxy::OnComplete(
    int32_t in_result, const ::net::ResolveErrorInfo& in_resolve_error_info, const std::optional<::net::AddressList>& in_resolved_addresses, const std::optional<std::vector<::net::HostResolverEndpointResult>>& in_endpoint_results_with_metadata) {}

void ResolveHostClientProxy::OnTextResults(
    const std::vector<std::string>& in_text_results) {}

void ResolveHostClientProxy::OnHostnameResults(
    const std::vector<::net::HostPortPair>& in_hosts) {}

// static
bool ResolveHostClientStubDispatch::Accept(
    ResolveHostClient* impl,
    mojo::Message* message) {}

// static
bool ResolveHostClientStubDispatch::AcceptWithResponder(
    ResolveHostClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kResolveHostClientValidationInfo[] =;

bool ResolveHostClientRequestValidator::Accept(mojo::Message* message) {}

const char MdnsListenClient::Name_[] =;

MdnsListenClient::IPCStableHashFunction MdnsListenClient::MessageToMethodInfo_(mojo::Message& message) {}


const char* MdnsListenClient::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MdnsListenClient::OnAddressResult_Sym::IPCStableHash() {}
uint32_t MdnsListenClient::OnTextResult_Sym::IPCStableHash() {}
uint32_t MdnsListenClient::OnHostnameResult_Sym::IPCStableHash() {}
uint32_t MdnsListenClient::OnUnhandledResult_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

MdnsListenClientProxy::MdnsListenClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void MdnsListenClientProxy::OnAddressResult(
    ::net::MdnsListenerUpdateType in_update_type, ::net::DnsQueryType in_query_type, const ::net::IPEndPoint& in_endpoint) {}

void MdnsListenClientProxy::OnTextResult(
    ::net::MdnsListenerUpdateType in_update_type, ::net::DnsQueryType in_query_type, const std::vector<std::string>& in_text_records) {}

void MdnsListenClientProxy::OnHostnameResult(
    ::net::MdnsListenerUpdateType in_update_type, ::net::DnsQueryType in_query_type, const ::net::HostPortPair& in_host) {}

void MdnsListenClientProxy::OnUnhandledResult(
    ::net::MdnsListenerUpdateType in_update_type, ::net::DnsQueryType in_query_type) {}

// static
bool MdnsListenClientStubDispatch::Accept(
    MdnsListenClient* impl,
    mojo::Message* message) {}

// static
bool MdnsListenClientStubDispatch::AcceptWithResponder(
    MdnsListenClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kMdnsListenClientValidationInfo[] =;

bool MdnsListenClientRequestValidator::Accept(mojo::Message* message) {}

const char HostResolver::Name_[] =;

HostResolver::IPCStableHashFunction HostResolver::MessageToMethodInfo_(mojo::Message& message) {}


const char* HostResolver::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HostResolver::ResolveHost_Sym::IPCStableHash() {}
uint32_t HostResolver::MdnsListen_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class HostResolver_MdnsListen_ForwardToCallback
    : public mojo::MessageReceiver {};

HostResolverProxy::HostResolverProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void HostResolverProxy::ResolveHost(
    HostResolverHostPtr in_host, const ::net::NetworkAnonymizationKey& in_network_anonymization_key, ResolveHostParametersPtr in_optional_parameters, ::mojo::PendingRemote<ResolveHostClient> in_response_client) {}

void HostResolverProxy::MdnsListen(
    const ::net::HostPortPair& in_host, ::net::DnsQueryType in_query_type, ::mojo::PendingRemote<MdnsListenClient> in_response_client, MdnsListenCallback callback) {}
class HostResolver_MdnsListen_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool HostResolver_MdnsListen_ForwardToCallback::Accept(
    mojo::Message* message) {}

void HostResolver_MdnsListen_ProxyToResponder::Run(
    int32_t in_result) {}

// static
bool HostResolverStubDispatch::Accept(
    HostResolver* impl,
    mojo::Message* message) {}

// static
bool HostResolverStubDispatch::AcceptWithResponder(
    HostResolver* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kHostResolverValidationInfo[] =;

bool HostResolverRequestValidator::Accept(mojo::Message* message) {}

bool HostResolverResponseValidator::Accept(mojo::Message* message) {}
const char DnsConfigChangeManagerClient::Name_[] =;

DnsConfigChangeManagerClient::IPCStableHashFunction DnsConfigChangeManagerClient::MessageToMethodInfo_(mojo::Message& message) {}


const char* DnsConfigChangeManagerClient::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t DnsConfigChangeManagerClient::OnDnsConfigChanged_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

DnsConfigChangeManagerClientProxy::DnsConfigChangeManagerClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void DnsConfigChangeManagerClientProxy::OnDnsConfigChanged(
    ) {}

// static
bool DnsConfigChangeManagerClientStubDispatch::Accept(
    DnsConfigChangeManagerClient* impl,
    mojo::Message* message) {}

// static
bool DnsConfigChangeManagerClientStubDispatch::AcceptWithResponder(
    DnsConfigChangeManagerClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kDnsConfigChangeManagerClientValidationInfo[] =;

bool DnsConfigChangeManagerClientRequestValidator::Accept(mojo::Message* message) {}

const char DnsConfigChangeManager::Name_[] =;

DnsConfigChangeManager::IPCStableHashFunction DnsConfigChangeManager::MessageToMethodInfo_(mojo::Message& message) {}


const char* DnsConfigChangeManager::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t DnsConfigChangeManager::RequestNotifications_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

DnsConfigChangeManagerProxy::DnsConfigChangeManagerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void DnsConfigChangeManagerProxy::RequestNotifications(
    ::mojo::PendingRemote<DnsConfigChangeManagerClient> in_client) {}

// static
bool DnsConfigChangeManagerStubDispatch::Accept(
    DnsConfigChangeManager* impl,
    mojo::Message* message) {}

// static
bool DnsConfigChangeManagerStubDispatch::AcceptWithResponder(
    DnsConfigChangeManager* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kDnsConfigChangeManagerValidationInfo[] =;

bool DnsConfigChangeManagerRequestValidator::Accept(mojo::Message* message) {}



}  // network::mojom


namespace mojo {


// static
bool StructTraits<::network::mojom::DnsOverHttpsServerConfig::DataView, ::network::mojom::DnsOverHttpsServerConfigPtr>::Read(
    ::network::mojom::DnsOverHttpsServerConfig::DataView input,
    ::network::mojom::DnsOverHttpsServerConfigPtr* output) {}


// static
bool StructTraits<::network::mojom::DnsOverHttpsConfig::DataView, ::network::mojom::DnsOverHttpsConfigPtr>::Read(
    ::network::mojom::DnsOverHttpsConfig::DataView input,
    ::network::mojom::DnsOverHttpsConfigPtr* output) {}


// static
bool StructTraits<::network::mojom::DnsConfigOverrides::DataView, ::network::mojom::DnsConfigOverridesPtr>::Read(
    ::network::mojom::DnsConfigOverrides::DataView input,
    ::network::mojom::DnsConfigOverridesPtr* output) {}


// static
bool StructTraits<::network::mojom::ResolveHostParameters::DataView, ::network::mojom::ResolveHostParametersPtr>::Read(
    ::network::mojom::ResolveHostParameters::DataView input,
    ::network::mojom::ResolveHostParametersPtr* output) {}

// static
bool UnionTraits<::network::mojom::HostResolverHost::DataView, ::network::mojom::HostResolverHostPtr>::Read(
    ::network::mojom::HostResolverHost::DataView input,
    ::network::mojom::HostResolverHostPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace network::mojom {


void ResolveHostHandleInterceptorForTesting::Cancel(int32_t result) {}
ResolveHostHandleAsyncWaiter::ResolveHostHandleAsyncWaiter(
    ResolveHostHandle* proxy) :{}

ResolveHostHandleAsyncWaiter::~ResolveHostHandleAsyncWaiter() = default;




void ResolveHostClientInterceptorForTesting::OnComplete(int32_t result, const ::net::ResolveErrorInfo& resolve_error_info, const std::optional<::net::AddressList>& resolved_addresses, const std::optional<std::vector<::net::HostResolverEndpointResult>>& endpoint_results_with_metadata) {}
void ResolveHostClientInterceptorForTesting::OnTextResults(const std::vector<std::string>& text_results) {}
void ResolveHostClientInterceptorForTesting::OnHostnameResults(const std::vector<::net::HostPortPair>& hosts) {}
ResolveHostClientAsyncWaiter::ResolveHostClientAsyncWaiter(
    ResolveHostClient* proxy) :{}

ResolveHostClientAsyncWaiter::~ResolveHostClientAsyncWaiter() = default;




void MdnsListenClientInterceptorForTesting::OnAddressResult(::net::MdnsListenerUpdateType update_type, ::net::DnsQueryType query_type, const ::net::IPEndPoint& endpoint) {}
void MdnsListenClientInterceptorForTesting::OnTextResult(::net::MdnsListenerUpdateType update_type, ::net::DnsQueryType query_type, const std::vector<std::string>& text_records) {}
void MdnsListenClientInterceptorForTesting::OnHostnameResult(::net::MdnsListenerUpdateType update_type, ::net::DnsQueryType query_type, const ::net::HostPortPair& host) {}
void MdnsListenClientInterceptorForTesting::OnUnhandledResult(::net::MdnsListenerUpdateType update_type, ::net::DnsQueryType query_type) {}
MdnsListenClientAsyncWaiter::MdnsListenClientAsyncWaiter(
    MdnsListenClient* proxy) :{}

MdnsListenClientAsyncWaiter::~MdnsListenClientAsyncWaiter() = default;




void HostResolverInterceptorForTesting::ResolveHost(HostResolverHostPtr host, const ::net::NetworkAnonymizationKey& network_anonymization_key, ResolveHostParametersPtr optional_parameters, ::mojo::PendingRemote<ResolveHostClient> response_client) {}
void HostResolverInterceptorForTesting::MdnsListen(const ::net::HostPortPair& host, ::net::DnsQueryType query_type, ::mojo::PendingRemote<MdnsListenClient> response_client, MdnsListenCallback callback) {}
HostResolverAsyncWaiter::HostResolverAsyncWaiter(
    HostResolver* proxy) :{}

HostResolverAsyncWaiter::~HostResolverAsyncWaiter() = default;

void HostResolverAsyncWaiter::MdnsListen(
    const ::net::HostPortPair& host, ::net::DnsQueryType query_type, ::mojo::PendingRemote<MdnsListenClient> response_client, int32_t* out_result) {}

int32_t HostResolverAsyncWaiter::MdnsListen(
    const ::net::HostPortPair& host, ::net::DnsQueryType query_type, ::mojo::PendingRemote<MdnsListenClient> response_client) {}




void DnsConfigChangeManagerClientInterceptorForTesting::OnDnsConfigChanged() {}
DnsConfigChangeManagerClientAsyncWaiter::DnsConfigChangeManagerClientAsyncWaiter(
    DnsConfigChangeManagerClient* proxy) :{}

DnsConfigChangeManagerClientAsyncWaiter::~DnsConfigChangeManagerClientAsyncWaiter() = default;




void DnsConfigChangeManagerInterceptorForTesting::RequestNotifications(::mojo::PendingRemote<DnsConfigChangeManagerClient> client) {}
DnsConfigChangeManagerAsyncWaiter::DnsConfigChangeManagerAsyncWaiter(
    DnsConfigChangeManager* proxy) :{}

DnsConfigChangeManagerAsyncWaiter::~DnsConfigChangeManagerAsyncWaiter() = default;






}  // network::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif