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

// services/network/public/mojom/proxy_resolving_socket.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/proxy_resolving_socket.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/proxy_resolving_socket.mojom-params-data.h"
#include "services/network/public/mojom/proxy_resolving_socket.mojom-shared-message-ids.h"

#include "services/network/public/mojom/proxy_resolving_socket.mojom-import-headers.h"
#include "services/network/public/mojom/proxy_resolving_socket.mojom-test-utils.h"


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

ProxyResolvingSocketOptions::ProxyResolvingSocketOptions(
    bool use_tls_in,
    bool fake_tls_handshake_in)
    :{}

ProxyResolvingSocketOptions::~ProxyResolvingSocketOptions() = default;
size_t ProxyResolvingSocketOptions::Hash(size_t seed) const {}

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ProxyResolvingSocket::UpgradeToTLS_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class ProxyResolvingSocket_UpgradeToTLS_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void ProxyResolvingSocketProxy::UpgradeToTLS(
    const ::net::HostPortPair& in_host_port_pair, const ::net::MutableNetworkTrafficAnnotationTag& in_traffic_annotation, ::mojo::PendingReceiver<::network::mojom::TLSClientSocket> in_receiver, ::mojo::PendingRemote<::network::mojom::SocketObserver> in_observer, UpgradeToTLSCallback callback) {}
class ProxyResolvingSocket_UpgradeToTLS_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ProxyResolvingSocket_UpgradeToTLS_ProxyToResponder::Run(
    int32_t in_net_error, ::mojo::ScopedDataPipeConsumerHandle in_receive_stream, ::mojo::ScopedDataPipeProducerHandle in_send_stream) {}

// static
bool ProxyResolvingSocketStubDispatch::Accept(
    ProxyResolvingSocket* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ProxyResolvingSocketFactory::CreateProxyResolvingSocket_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class ProxyResolvingSocketFactory_CreateProxyResolvingSocket_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void ProxyResolvingSocketFactoryProxy::CreateProxyResolvingSocket(
    const ::GURL& in_url, const ::net::NetworkAnonymizationKey& in_network_anonymization_key, ProxyResolvingSocketOptionsPtr in_options, const ::net::MutableNetworkTrafficAnnotationTag& in_traffic_annotation, ::mojo::PendingReceiver<ProxyResolvingSocket> in_socket, ::mojo::PendingRemote<::network::mojom::SocketObserver> in_observer, CreateProxyResolvingSocketCallback callback) {}
class ProxyResolvingSocketFactory_CreateProxyResolvingSocket_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void ProxyResolvingSocketFactory_CreateProxyResolvingSocket_ProxyToResponder::Run(
    int32_t in_result, const std::optional<::net::IPEndPoint>& in_local_addr, const std::optional<::net::IPEndPoint>& in_peer_addr, ::mojo::ScopedDataPipeConsumerHandle in_receive_stream, ::mojo::ScopedDataPipeProducerHandle in_send_stream) {}

// static
bool ProxyResolvingSocketFactoryStubDispatch::Accept(
    ProxyResolvingSocketFactory* impl,
    mojo::Message* message) {}

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

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

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


}  // network::mojom


namespace mojo {


// static
bool StructTraits<::network::mojom::ProxyResolvingSocketOptions::DataView, ::network::mojom::ProxyResolvingSocketOptionsPtr>::Read(
    ::network::mojom::ProxyResolvingSocketOptions::DataView input,
    ::network::mojom::ProxyResolvingSocketOptionsPtr* 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 ProxyResolvingSocketInterceptorForTesting::UpgradeToTLS(const ::net::HostPortPair& host_port_pair, const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation, ::mojo::PendingReceiver<::network::mojom::TLSClientSocket> receiver, ::mojo::PendingRemote<::network::mojom::SocketObserver> observer, UpgradeToTLSCallback callback) {}
ProxyResolvingSocketAsyncWaiter::ProxyResolvingSocketAsyncWaiter(
    ProxyResolvingSocket* proxy) :{}

ProxyResolvingSocketAsyncWaiter::~ProxyResolvingSocketAsyncWaiter() = default;

void ProxyResolvingSocketAsyncWaiter::UpgradeToTLS(
    const ::net::HostPortPair& host_port_pair, const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation, ::mojo::PendingReceiver<::network::mojom::TLSClientSocket> receiver, ::mojo::PendingRemote<::network::mojom::SocketObserver> observer, int32_t* out_net_error, ::mojo::ScopedDataPipeConsumerHandle* out_receive_stream, ::mojo::ScopedDataPipeProducerHandle* out_send_stream) {}






void ProxyResolvingSocketFactoryInterceptorForTesting::CreateProxyResolvingSocket(const ::GURL& url, const ::net::NetworkAnonymizationKey& network_anonymization_key, ProxyResolvingSocketOptionsPtr options, const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation, ::mojo::PendingReceiver<ProxyResolvingSocket> socket, ::mojo::PendingRemote<::network::mojom::SocketObserver> observer, CreateProxyResolvingSocketCallback callback) {}
ProxyResolvingSocketFactoryAsyncWaiter::ProxyResolvingSocketFactoryAsyncWaiter(
    ProxyResolvingSocketFactory* proxy) :{}

ProxyResolvingSocketFactoryAsyncWaiter::~ProxyResolvingSocketFactoryAsyncWaiter() = default;

void ProxyResolvingSocketFactoryAsyncWaiter::CreateProxyResolvingSocket(
    const ::GURL& url, const ::net::NetworkAnonymizationKey& network_anonymization_key, ProxyResolvingSocketOptionsPtr options, const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation, ::mojo::PendingReceiver<ProxyResolvingSocket> socket, ::mojo::PendingRemote<::network::mojom::SocketObserver> observer, int32_t* out_result, std::optional<::net::IPEndPoint>* out_local_addr, std::optional<::net::IPEndPoint>* out_peer_addr, ::mojo::ScopedDataPipeConsumerHandle* out_receive_stream, ::mojo::ScopedDataPipeProducerHandle* out_send_stream) {}








}  // network::mojom


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