chromium/out/Default/gen/third_party/blink/public/mojom/presentation/presentation.mojom-blink.cc

// third_party/blink/public/mojom/presentation/presentation.mojom-blink.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 "third_party/blink/public/mojom/presentation/presentation.mojom-blink.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 "third_party/blink/public/mojom/presentation/presentation.mojom-params-data.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/presentation/presentation.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace blink::mojom::blink {
PresentationInfo::PresentationInfo()
    :{}

PresentationInfo::PresentationInfo(
    const ::blink::KURL& url_in,
    const WTF::String& id_in)
    :{}

PresentationInfo::~PresentationInfo() = default;

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

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

PresentationError::PresentationError(
    PresentationErrorType error_type_in,
    const WTF::String& message_in)
    :{}

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

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

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

PresentationConnectionResult::PresentationConnectionResult(
    PresentationInfoPtr presentation_info_in,
    ::mojo::PendingRemote<PresentationConnection> connection_remote_in,
    ::mojo::PendingReceiver<PresentationConnection> connection_receiver_in)
    :{}

PresentationConnectionResult::~PresentationConnectionResult() = default;

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

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

PresentationConnectionMessage::~PresentationConnectionMessage() {}


void PresentationConnectionMessage::set_message(
    const WTF::String& message) {}
void PresentationConnectionMessage::set_data(
    WTF::Vector<uint8_t> data) {}

void PresentationConnectionMessage::DestroyActive() {}

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PresentationConnection::OnMessage_Sym::IPCStableHash() {}
uint32_t PresentationConnection::DidChangeState_Sym::IPCStableHash() {}
uint32_t PresentationConnection::DidClose_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PresentationConnectionProxy::OnMessage(
    PresentationConnectionMessagePtr in_message) {}

void PresentationConnectionProxy::DidChangeState(
    PresentationConnectionState in_state) {}

void PresentationConnectionProxy::DidClose(
    PresentationConnectionCloseReason in_reason) {}

// static
bool PresentationConnectionStubDispatch::Accept(
    PresentationConnection* impl,
    mojo::Message* message) {}

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

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

const char PresentationService::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PresentationService::SetController_Sym::IPCStableHash() {}
uint32_t PresentationService::SetReceiver_Sym::IPCStableHash() {}
uint32_t PresentationService::SetDefaultPresentationUrls_Sym::IPCStableHash() {}
uint32_t PresentationService::ListenForScreenAvailability_Sym::IPCStableHash() {}
uint32_t PresentationService::StopListeningForScreenAvailability_Sym::IPCStableHash() {}
uint32_t PresentationService::StartPresentation_Sym::IPCStableHash() {}
uint32_t PresentationService::ReconnectPresentation_Sym::IPCStableHash() {}
uint32_t PresentationService::CloseConnection_Sym::IPCStableHash() {}
uint32_t PresentationService::Terminate_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PresentationService_StartPresentation_ForwardToCallback
    : public mojo::MessageReceiver {};

class PresentationService_ReconnectPresentation_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void PresentationServiceProxy::SetController(
    ::mojo::PendingRemote<PresentationController> in_controller) {}

void PresentationServiceProxy::SetReceiver(
    ::mojo::PendingRemote<PresentationReceiver> in_receiver) {}

void PresentationServiceProxy::SetDefaultPresentationUrls(
    const WTF::Vector<::blink::KURL>& in_presentation_urls) {}

void PresentationServiceProxy::ListenForScreenAvailability(
    const ::blink::KURL& in_availability_url) {}

void PresentationServiceProxy::StopListeningForScreenAvailability(
    const ::blink::KURL& in_availability_url) {}

void PresentationServiceProxy::StartPresentation(
    const WTF::Vector<::blink::KURL>& in_presentation_urls, StartPresentationCallback callback) {}

void PresentationServiceProxy::ReconnectPresentation(
    const WTF::Vector<::blink::KURL>& in_presentation_urls, const WTF::String& in_presentation_id, ReconnectPresentationCallback callback) {}

void PresentationServiceProxy::CloseConnection(
    const ::blink::KURL& in_presentation_url, const WTF::String& in_presentation_id) {}

void PresentationServiceProxy::Terminate(
    const ::blink::KURL& in_presentation_url, const WTF::String& in_presentation_id) {}
class PresentationService_StartPresentation_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PresentationService_StartPresentation_ProxyToResponder::Run(
    PresentationConnectionResultPtr in_result, PresentationErrorPtr in_error) {}
class PresentationService_ReconnectPresentation_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PresentationService_ReconnectPresentation_ProxyToResponder::Run(
    PresentationConnectionResultPtr in_result, PresentationErrorPtr in_error) {}

// static
bool PresentationServiceStubDispatch::Accept(
    PresentationService* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PresentationController::OnScreenAvailabilityUpdated_Sym::IPCStableHash() {}
uint32_t PresentationController::OnDefaultPresentationStarted_Sym::IPCStableHash() {}
uint32_t PresentationController::OnConnectionStateChanged_Sym::IPCStableHash() {}
uint32_t PresentationController::OnConnectionClosed_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PresentationControllerProxy::OnScreenAvailabilityUpdated(
    const ::blink::KURL& in_url, ScreenAvailability in_availability) {}

void PresentationControllerProxy::OnDefaultPresentationStarted(
    PresentationConnectionResultPtr in_result) {}

void PresentationControllerProxy::OnConnectionStateChanged(
    PresentationInfoPtr in_presentation_info, PresentationConnectionState in_newState) {}

void PresentationControllerProxy::OnConnectionClosed(
    PresentationInfoPtr in_presentation_info, PresentationConnectionCloseReason in_reason, const WTF::String& in_message) {}

// static
bool PresentationControllerStubDispatch::Accept(
    PresentationController* impl,
    mojo::Message* message) {}

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

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

const char PresentationReceiver::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PresentationReceiver::OnReceiverConnectionAvailable_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PresentationReceiverProxy::OnReceiverConnectionAvailable(
    PresentationConnectionResultPtr in_result) {}

// static
bool PresentationReceiverStubDispatch::Accept(
    PresentationReceiver* impl,
    mojo::Message* message) {}

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

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



}  // blink::mojom::blink


namespace mojo {


// static
bool StructTraits<::blink::mojom::blink::PresentationInfo::DataView, ::blink::mojom::blink::PresentationInfoPtr>::Read(
    ::blink::mojom::blink::PresentationInfo::DataView input,
    ::blink::mojom::blink::PresentationInfoPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::PresentationError::DataView, ::blink::mojom::blink::PresentationErrorPtr>::Read(
    ::blink::mojom::blink::PresentationError::DataView input,
    ::blink::mojom::blink::PresentationErrorPtr* output) {}


// static
bool StructTraits<::blink::mojom::blink::PresentationConnectionResult::DataView, ::blink::mojom::blink::PresentationConnectionResultPtr>::Read(
    ::blink::mojom::blink::PresentationConnectionResult::DataView input,
    ::blink::mojom::blink::PresentationConnectionResultPtr* output) {}

// static
bool UnionTraits<::blink::mojom::blink::PresentationConnectionMessage::DataView, ::blink::mojom::blink::PresentationConnectionMessagePtr>::Read(
    ::blink::mojom::blink::PresentationConnectionMessage::DataView input,
    ::blink::mojom::blink::PresentationConnectionMessagePtr* 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 blink::mojom::blink {


void PresentationConnectionInterceptorForTesting::OnMessage(PresentationConnectionMessagePtr message) {}
void PresentationConnectionInterceptorForTesting::DidChangeState(PresentationConnectionState state) {}
void PresentationConnectionInterceptorForTesting::DidClose(PresentationConnectionCloseReason reason) {}
PresentationConnectionAsyncWaiter::PresentationConnectionAsyncWaiter(
    PresentationConnection* proxy) :{}

PresentationConnectionAsyncWaiter::~PresentationConnectionAsyncWaiter() = default;




void PresentationServiceInterceptorForTesting::SetController(::mojo::PendingRemote<PresentationController> controller) {}
void PresentationServiceInterceptorForTesting::SetReceiver(::mojo::PendingRemote<PresentationReceiver> receiver) {}
void PresentationServiceInterceptorForTesting::SetDefaultPresentationUrls(const WTF::Vector<::blink::KURL>& presentation_urls) {}
void PresentationServiceInterceptorForTesting::ListenForScreenAvailability(const ::blink::KURL& availability_url) {}
void PresentationServiceInterceptorForTesting::StopListeningForScreenAvailability(const ::blink::KURL& availability_url) {}
void PresentationServiceInterceptorForTesting::StartPresentation(const WTF::Vector<::blink::KURL>& presentation_urls, StartPresentationCallback callback) {}
void PresentationServiceInterceptorForTesting::ReconnectPresentation(const WTF::Vector<::blink::KURL>& presentation_urls, const WTF::String& presentation_id, ReconnectPresentationCallback callback) {}
void PresentationServiceInterceptorForTesting::CloseConnection(const ::blink::KURL& presentation_url, const WTF::String& presentation_id) {}
void PresentationServiceInterceptorForTesting::Terminate(const ::blink::KURL& presentation_url, const WTF::String& presentation_id) {}
PresentationServiceAsyncWaiter::PresentationServiceAsyncWaiter(
    PresentationService* proxy) :{}

PresentationServiceAsyncWaiter::~PresentationServiceAsyncWaiter() = default;

void PresentationServiceAsyncWaiter::StartPresentation(
    const WTF::Vector<::blink::KURL>& presentation_urls, PresentationConnectionResultPtr* out_result, PresentationErrorPtr* out_error) {}



void PresentationServiceAsyncWaiter::ReconnectPresentation(
    const WTF::Vector<::blink::KURL>& presentation_urls, const WTF::String& presentation_id, PresentationConnectionResultPtr* out_result, PresentationErrorPtr* out_error) {}






void PresentationControllerInterceptorForTesting::OnScreenAvailabilityUpdated(const ::blink::KURL& url, ScreenAvailability availability) {}
void PresentationControllerInterceptorForTesting::OnDefaultPresentationStarted(PresentationConnectionResultPtr result) {}
void PresentationControllerInterceptorForTesting::OnConnectionStateChanged(PresentationInfoPtr presentation_info, PresentationConnectionState newState) {}
void PresentationControllerInterceptorForTesting::OnConnectionClosed(PresentationInfoPtr presentation_info, PresentationConnectionCloseReason reason, const WTF::String& message) {}
PresentationControllerAsyncWaiter::PresentationControllerAsyncWaiter(
    PresentationController* proxy) :{}

PresentationControllerAsyncWaiter::~PresentationControllerAsyncWaiter() = default;




void PresentationReceiverInterceptorForTesting::OnReceiverConnectionAvailable(PresentationConnectionResultPtr result) {}
PresentationReceiverAsyncWaiter::PresentationReceiverAsyncWaiter(
    PresentationReceiver* proxy) :{}

PresentationReceiverAsyncWaiter::~PresentationReceiverAsyncWaiter() = default;






}  // blink::mojom::blink


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