chromium/out/Default/gen/media/mojo/mojom/cdm_storage.mojom-blink.cc

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

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


namespace media::mojom::blink {
const char CdmStorage::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CdmStorage::Open_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class CdmStorage_Open_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void CdmStorageProxy::Open(
    const WTF::String& in_file_name, OpenCallback callback) {}
class CdmStorage_Open_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CdmStorage_Open_ProxyToResponder::Run(
    CdmStorage::Status in_status, ::mojo::PendingAssociatedRemote<CdmFile> in_cdm_file) {}

// static
bool CdmStorageStubDispatch::Accept(
    CdmStorage* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CdmFile::Read_Sym::IPCStableHash() {}
uint32_t CdmFile::Write_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class CdmFile_Read_ForwardToCallback
    : public mojo::MessageReceiver {};

class CdmFile_Write_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void CdmFileProxy::Read(
    ReadCallback callback) {}

void CdmFileProxy::Write(
    const WTF::Vector<uint8_t>& in_data, WriteCallback callback) {}
class CdmFile_Read_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CdmFile_Read_ProxyToResponder::Run(
    CdmFile::Status in_status, const WTF::Vector<uint8_t>& in_data) {}
class CdmFile_Write_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void CdmFile_Write_ProxyToResponder::Run(
    CdmFile::Status in_status) {}

// static
bool CdmFileStubDispatch::Accept(
    CdmFile* impl,
    mojo::Message* message) {}

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

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

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


}  // media::mojom::blink


namespace mojo {

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace media::mojom::blink {


void CdmStorageInterceptorForTesting::Open(const WTF::String& file_name, OpenCallback callback) {}
CdmStorageAsyncWaiter::CdmStorageAsyncWaiter(
    CdmStorage* proxy) :{}

CdmStorageAsyncWaiter::~CdmStorageAsyncWaiter() = default;

void CdmStorageAsyncWaiter::Open(
    const WTF::String& file_name, CdmStorage::Status* out_status, ::mojo::PendingAssociatedRemote<CdmFile>* out_cdm_file) {}






void CdmFileInterceptorForTesting::Read(ReadCallback callback) {}
void CdmFileInterceptorForTesting::Write(const WTF::Vector<uint8_t>& data, WriteCallback callback) {}
CdmFileAsyncWaiter::CdmFileAsyncWaiter(
    CdmFile* proxy) :{}

CdmFileAsyncWaiter::~CdmFileAsyncWaiter() = default;

void CdmFileAsyncWaiter::Read(
    CdmFile::Status* out_status, WTF::Vector<uint8_t>* out_data) {}



void CdmFileAsyncWaiter::Write(
    const WTF::Vector<uint8_t>& data, CdmFile::Status* out_status) {}

CdmFile::Status CdmFileAsyncWaiter::Write(
    const WTF::Vector<uint8_t>& data) {}






}  // media::mojom::blink


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