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

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

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


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

P2PReceivedPacket::P2PReceivedPacket(
    ::base::span<const ::uint8_t> data_in,
    const ::net::IPEndPoint& socket_address_in,
    ::base::TimeTicks timestamp_in,
    ::rtc::EcnMarking ecn_in)
    :{}

P2PReceivedPacket::~P2PReceivedPacket() = default;

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

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

P2PSendPacket::P2PSendPacket(
    ::base::span<const ::uint8_t> data_in,
    const ::network::P2PPacketInfo& packet_info_in)
    :{}

P2PSendPacket::~P2PSendPacket() = default;

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t P2PNetworkNotificationClient::NetworkListChanged_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void P2PNetworkNotificationClientProxy::NetworkListChanged(
    const std::vector<::net::NetworkInterface>& in_networks, const ::net::IPAddress& in_default_ipv4_local_address, const ::net::IPAddress& in_default_ipv6_local_address) {}

// static
bool P2PNetworkNotificationClientStubDispatch::Accept(
    P2PNetworkNotificationClient* impl,
    mojo::Message* message) {}

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

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

const char P2PSocketManager::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t P2PSocketManager::StartNetworkNotifications_Sym::IPCStableHash() {}
uint32_t P2PSocketManager::GetHostAddress_Sym::IPCStableHash() {}
uint32_t P2PSocketManager::GetHostAddressWithFamily_Sym::IPCStableHash() {}
uint32_t P2PSocketManager::CreateSocket_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class P2PSocketManager_GetHostAddress_ForwardToCallback
    : public mojo::MessageReceiver {};

class P2PSocketManager_GetHostAddressWithFamily_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void P2PSocketManagerProxy::StartNetworkNotifications(
    ::mojo::PendingRemote<P2PNetworkNotificationClient> in_client) {}

void P2PSocketManagerProxy::GetHostAddress(
    const std::string& in_host_name, bool in_enable_mdns, GetHostAddressCallback callback) {}

void P2PSocketManagerProxy::GetHostAddressWithFamily(
    const std::string& in_host_name, int32_t in_address_family, bool in_enable_mdns, GetHostAddressWithFamilyCallback callback) {}

void P2PSocketManagerProxy::CreateSocket(
    ::network::P2PSocketType in_type, const ::net::IPEndPoint& in_local_address, const ::network::P2PPortRange& in_port_range, const ::network::P2PHostAndIPEndPoint& in_remote_address, const ::net::MutableNetworkTrafficAnnotationTag& in_traffic_annotation, const std::optional<::base::UnguessableToken>& in_devtools_token, ::mojo::PendingRemote<P2PSocketClient> in_client, ::mojo::PendingReceiver<P2PSocket> in_socket) {}
class P2PSocketManager_GetHostAddress_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void P2PSocketManager_GetHostAddress_ProxyToResponder::Run(
    const std::vector<::net::IPAddress>& in_addresses) {}
class P2PSocketManager_GetHostAddressWithFamily_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void P2PSocketManager_GetHostAddressWithFamily_ProxyToResponder::Run(
    const std::vector<::net::IPAddress>& in_addresses) {}

// static
bool P2PSocketManagerStubDispatch::Accept(
    P2PSocketManager* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t P2PSocket::Send_Sym::IPCStableHash() {}
uint32_t P2PSocket::SendBatch_Sym::IPCStableHash() {}
uint32_t P2PSocket::SetOption_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void P2PSocketProxy::Send(
    ::base::span<const ::uint8_t> in_data, const ::network::P2PPacketInfo& in_packet_info) {}

void P2PSocketProxy::SendBatch(
    std::vector<P2PSendPacketPtr> in_packet_batch) {}

void P2PSocketProxy::SetOption(
    ::network::P2PSocketOption in_option, int32_t in_value) {}

// static
bool P2PSocketStubDispatch::Accept(
    P2PSocket* impl,
    mojo::Message* message) {}

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

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

const char P2PSocketClient::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t P2PSocketClient::SocketCreated_Sym::IPCStableHash() {}
uint32_t P2PSocketClient::SendComplete_Sym::IPCStableHash() {}
uint32_t P2PSocketClient::SendBatchComplete_Sym::IPCStableHash() {}
uint32_t P2PSocketClient::DataReceived_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void P2PSocketClientProxy::SocketCreated(
    const ::net::IPEndPoint& in_local_address, const ::net::IPEndPoint& in_remote_address) {}

void P2PSocketClientProxy::SendComplete(
    const ::network::P2PSendPacketMetrics& in_send_metrics) {}

void P2PSocketClientProxy::SendBatchComplete(
    const std::vector<::network::P2PSendPacketMetrics>& in_send_metrics_batch) {}

void P2PSocketClientProxy::DataReceived(
    std::vector<P2PReceivedPacketPtr> in_packets) {}

// static
bool P2PSocketClientStubDispatch::Accept(
    P2PSocketClient* impl,
    mojo::Message* message) {}

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

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



}  // network::mojom


namespace mojo {


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


// static
bool StructTraits<::network::mojom::P2PSendPacket::DataView, ::network::mojom::P2PSendPacketPtr>::Read(
    ::network::mojom::P2PSendPacket::DataView input,
    ::network::mojom::P2PSendPacketPtr* 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 P2PNetworkNotificationClientInterceptorForTesting::NetworkListChanged(const std::vector<::net::NetworkInterface>& networks, const ::net::IPAddress& default_ipv4_local_address, const ::net::IPAddress& default_ipv6_local_address) {}
P2PNetworkNotificationClientAsyncWaiter::P2PNetworkNotificationClientAsyncWaiter(
    P2PNetworkNotificationClient* proxy) :{}

P2PNetworkNotificationClientAsyncWaiter::~P2PNetworkNotificationClientAsyncWaiter() = default;




void P2PSocketManagerInterceptorForTesting::StartNetworkNotifications(::mojo::PendingRemote<P2PNetworkNotificationClient> client) {}
void P2PSocketManagerInterceptorForTesting::GetHostAddress(const std::string& host_name, bool enable_mdns, GetHostAddressCallback callback) {}
void P2PSocketManagerInterceptorForTesting::GetHostAddressWithFamily(const std::string& host_name, int32_t address_family, bool enable_mdns, GetHostAddressWithFamilyCallback callback) {}
void P2PSocketManagerInterceptorForTesting::CreateSocket(::network::P2PSocketType type, const ::net::IPEndPoint& local_address, const ::network::P2PPortRange& port_range, const ::network::P2PHostAndIPEndPoint& remote_address, const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation, const std::optional<::base::UnguessableToken>& devtools_token, ::mojo::PendingRemote<P2PSocketClient> client, ::mojo::PendingReceiver<P2PSocket> socket) {}
P2PSocketManagerAsyncWaiter::P2PSocketManagerAsyncWaiter(
    P2PSocketManager* proxy) :{}

P2PSocketManagerAsyncWaiter::~P2PSocketManagerAsyncWaiter() = default;

void P2PSocketManagerAsyncWaiter::GetHostAddress(
    const std::string& host_name, bool enable_mdns, std::vector<::net::IPAddress>* out_addresses) {}

std::vector<::net::IPAddress> P2PSocketManagerAsyncWaiter::GetHostAddress(
    const std::string& host_name, bool enable_mdns) {}

void P2PSocketManagerAsyncWaiter::GetHostAddressWithFamily(
    const std::string& host_name, int32_t address_family, bool enable_mdns, std::vector<::net::IPAddress>* out_addresses) {}

std::vector<::net::IPAddress> P2PSocketManagerAsyncWaiter::GetHostAddressWithFamily(
    const std::string& host_name, int32_t address_family, bool enable_mdns) {}




void P2PSocketInterceptorForTesting::Send(::base::span<const ::uint8_t> data, const ::network::P2PPacketInfo& packet_info) {}
void P2PSocketInterceptorForTesting::SendBatch(std::vector<P2PSendPacketPtr> packet_batch) {}
void P2PSocketInterceptorForTesting::SetOption(::network::P2PSocketOption option, int32_t value) {}
P2PSocketAsyncWaiter::P2PSocketAsyncWaiter(
    P2PSocket* proxy) :{}

P2PSocketAsyncWaiter::~P2PSocketAsyncWaiter() = default;




void P2PSocketClientInterceptorForTesting::SocketCreated(const ::net::IPEndPoint& local_address, const ::net::IPEndPoint& remote_address) {}
void P2PSocketClientInterceptorForTesting::SendComplete(const ::network::P2PSendPacketMetrics& send_metrics) {}
void P2PSocketClientInterceptorForTesting::SendBatchComplete(const std::vector<::network::P2PSendPacketMetrics>& send_metrics_batch) {}
void P2PSocketClientInterceptorForTesting::DataReceived(std::vector<P2PReceivedPacketPtr> packets) {}
P2PSocketClientAsyncWaiter::P2PSocketClientAsyncWaiter(
    P2PSocketClient* proxy) :{}

P2PSocketClientAsyncWaiter::~P2PSocketClientAsyncWaiter() = default;






}  // network::mojom


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