chromium/out/Default/gen/media/midi/midi_service.mojom.cc

// media/midi/midi_service.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 "media/midi/midi_service.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 "media/midi/midi_service.mojom-params-data.h"
#include "media/midi/midi_service.mojom-shared-message-ids.h"

#include "media/midi/midi_service.mojom-import-headers.h"
#include "media/midi/midi_service.mojom-test-utils.h"


namespace midi::mojom {
PortInfo::PortInfo()
    :{}

PortInfo::PortInfo(
    const std::string& id_in,
    const std::string& manufacturer_in,
    const std::string& name_in,
    const std::string& version_in,
    PortState state_in)
    :{}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MidiSessionClient::AddInputPort_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::AddOutputPort_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::SetInputPortState_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::SetOutputPortState_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::SessionStarted_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::AcknowledgeSentData_Sym::IPCStableHash() {}
uint32_t MidiSessionClient::DataReceived_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void MidiSessionClientProxy::AddInputPort(
    PortInfoPtr in_info) {}

void MidiSessionClientProxy::AddOutputPort(
    PortInfoPtr in_info) {}

void MidiSessionClientProxy::SetInputPortState(
    uint32_t in_port, PortState in_state) {}

void MidiSessionClientProxy::SetOutputPortState(
    uint32_t in_port, PortState in_state) {}

void MidiSessionClientProxy::SessionStarted(
    Result in_result) {}

void MidiSessionClientProxy::AcknowledgeSentData(
    uint32_t in_bytes) {}

void MidiSessionClientProxy::DataReceived(
    uint32_t in_port, const std::vector<uint8_t>& in_data, ::base::TimeTicks in_timestamp) {}

// static
bool MidiSessionClientStubDispatch::Accept(
    MidiSessionClient* impl,
    mojo::Message* message) {}

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

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

const char MidiSessionProvider::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MidiSessionProvider::StartSession_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void MidiSessionProviderProxy::StartSession(
    ::mojo::PendingReceiver<MidiSession> in_receiver, ::mojo::PendingRemote<MidiSessionClient> in_client) {}

// static
bool MidiSessionProviderStubDispatch::Accept(
    MidiSessionProvider* impl,
    mojo::Message* message) {}

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

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

const char MidiSession::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MidiSession::SendData_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void MidiSessionProxy::SendData(
    uint32_t in_port, const std::vector<uint8_t>& in_data, ::base::TimeTicks in_timestamp) {}

// static
bool MidiSessionStubDispatch::Accept(
    MidiSession* impl,
    mojo::Message* message) {}

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

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



}  // midi::mojom


namespace mojo {


// static
bool StructTraits<::midi::mojom::PortInfo::DataView, ::midi::mojom::PortInfoPtr>::Read(
    ::midi::mojom::PortInfo::DataView input,
    ::midi::mojom::PortInfoPtr* 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 midi::mojom {


void MidiSessionClientInterceptorForTesting::AddInputPort(PortInfoPtr info) {}
void MidiSessionClientInterceptorForTesting::AddOutputPort(PortInfoPtr info) {}
void MidiSessionClientInterceptorForTesting::SetInputPortState(uint32_t port, PortState state) {}
void MidiSessionClientInterceptorForTesting::SetOutputPortState(uint32_t port, PortState state) {}
void MidiSessionClientInterceptorForTesting::SessionStarted(Result result) {}
void MidiSessionClientInterceptorForTesting::AcknowledgeSentData(uint32_t bytes) {}
void MidiSessionClientInterceptorForTesting::DataReceived(uint32_t port, const std::vector<uint8_t>& data, ::base::TimeTicks timestamp) {}
MidiSessionClientAsyncWaiter::MidiSessionClientAsyncWaiter(
    MidiSessionClient* proxy) :{}

MidiSessionClientAsyncWaiter::~MidiSessionClientAsyncWaiter() = default;




void MidiSessionProviderInterceptorForTesting::StartSession(::mojo::PendingReceiver<MidiSession> receiver, ::mojo::PendingRemote<MidiSessionClient> client) {}
MidiSessionProviderAsyncWaiter::MidiSessionProviderAsyncWaiter(
    MidiSessionProvider* proxy) :{}

MidiSessionProviderAsyncWaiter::~MidiSessionProviderAsyncWaiter() = default;




void MidiSessionInterceptorForTesting::SendData(uint32_t port, const std::vector<uint8_t>& data, ::base::TimeTicks timestamp) {}
MidiSessionAsyncWaiter::MidiSessionAsyncWaiter(
    MidiSession* proxy) :{}

MidiSessionAsyncWaiter::~MidiSessionAsyncWaiter() = default;






}  // midi::mojom


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