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

// third_party/blink/public/mojom/presentation/presentation.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 "third_party/blink/public/mojom/presentation/presentation.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 "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-import-headers.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom-test-utils.h"


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

PresentationInfo::PresentationInfo(
    const ::GURL& url_in,
    const std::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 std::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 std::string& message) {}
void PresentationConnectionMessage::set_data(
    std::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 std::vector<::GURL>& in_presentation_urls) {}

void PresentationServiceProxy::ListenForScreenAvailability(
    const ::GURL& in_availability_url) {}

void PresentationServiceProxy::StopListeningForScreenAvailability(
    const ::GURL& in_availability_url) {}

void PresentationServiceProxy::StartPresentation(
    const std::vector<::GURL>& in_presentation_urls, StartPresentationCallback callback) {}

void PresentationServiceProxy::ReconnectPresentation(
    const std::vector<::GURL>& in_presentation_urls, const std::string& in_presentation_id, ReconnectPresentationCallback callback) {}

void PresentationServiceProxy::CloseConnection(
    const ::GURL& in_presentation_url, const std::string& in_presentation_id) {}

void PresentationServiceProxy::Terminate(
    const ::GURL& in_presentation_url, const std::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 ::GURL& 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 std::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


namespace mojo {


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


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


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

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


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 std::vector<::GURL>& presentation_urls) {}
void PresentationServiceInterceptorForTesting::ListenForScreenAvailability(const ::GURL& availability_url) {}
void PresentationServiceInterceptorForTesting::StopListeningForScreenAvailability(const ::GURL& availability_url) {}
void PresentationServiceInterceptorForTesting::StartPresentation(const std::vector<::GURL>& presentation_urls, StartPresentationCallback callback) {}
void PresentationServiceInterceptorForTesting::ReconnectPresentation(const std::vector<::GURL>& presentation_urls, const std::string& presentation_id, ReconnectPresentationCallback callback) {}
void PresentationServiceInterceptorForTesting::CloseConnection(const ::GURL& presentation_url, const std::string& presentation_id) {}
void PresentationServiceInterceptorForTesting::Terminate(const ::GURL& presentation_url, const std::string& presentation_id) {}
PresentationServiceAsyncWaiter::PresentationServiceAsyncWaiter(
    PresentationService* proxy) :{}

PresentationServiceAsyncWaiter::~PresentationServiceAsyncWaiter() = default;

void PresentationServiceAsyncWaiter::StartPresentation(
    const std::vector<::GURL>& presentation_urls, PresentationConnectionResultPtr* out_result, PresentationErrorPtr* out_error) {}



void PresentationServiceAsyncWaiter::ReconnectPresentation(
    const std::vector<::GURL>& presentation_urls, const std::string& presentation_id, PresentationConnectionResultPtr* out_result, PresentationErrorPtr* out_error) {}






void PresentationControllerInterceptorForTesting::OnScreenAvailabilityUpdated(const ::GURL& 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 std::string& message) {}
PresentationControllerAsyncWaiter::PresentationControllerAsyncWaiter(
    PresentationController* proxy) :{}

PresentationControllerAsyncWaiter::~PresentationControllerAsyncWaiter() = default;




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

PresentationReceiverAsyncWaiter::~PresentationReceiverAsyncWaiter() = default;






}  // blink::mojom


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