chromium/out/Default/gen/services/device/public/mojom/nfc.mojom-blink.cc

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

#include "services/device/public/mojom/nfc.mojom-blink-import-headers.h"
#include "services/device/public/mojom/nfc.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace device::mojom::blink {
NDEFError::NDEFError()
    :{}

NDEFError::NDEFError(
    NDEFErrorType error_type_in,
    const WTF::String& error_message_in)
    :{}

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

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

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

NDEFRecord::NDEFRecord(
    NDEFRecordTypeCategory category_in,
    const WTF::String& record_type_in,
    const WTF::String& media_type_in,
    const WTF::String& id_in,
    const WTF::String& encoding_in,
    const WTF::String& lang_in,
    WTF::Vector<uint8_t> data_in,
    NDEFMessagePtr payload_message_in)
    :{}

NDEFRecord::~NDEFRecord() = default;

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

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

NDEFMessage::NDEFMessage(
    WTF::Vector<NDEFRecordPtr> data_in)
    :{}

NDEFMessage::~NDEFMessage() = default;

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

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

NDEFWriteOptions::NDEFWriteOptions(
    bool overwrite_in)
    :{}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t NFC::SetClient_Sym::IPCStableHash() {}
uint32_t NFC::Push_Sym::IPCStableHash() {}
uint32_t NFC::CancelPush_Sym::IPCStableHash() {}
uint32_t NFC::MakeReadOnly_Sym::IPCStableHash() {}
uint32_t NFC::CancelMakeReadOnly_Sym::IPCStableHash() {}
uint32_t NFC::Watch_Sym::IPCStableHash() {}
uint32_t NFC::CancelWatch_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class NFC_Push_ForwardToCallback
    : public mojo::MessageReceiver {};

class NFC_MakeReadOnly_ForwardToCallback
    : public mojo::MessageReceiver {};

class NFC_Watch_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void NFCProxy::SetClient(
    ::mojo::PendingRemote<NFCClient> in_client) {}

void NFCProxy::Push(
    NDEFMessagePtr in_message, NDEFWriteOptionsPtr in_options, PushCallback callback) {}

void NFCProxy::CancelPush(
    ) {}

void NFCProxy::MakeReadOnly(
    MakeReadOnlyCallback callback) {}

void NFCProxy::CancelMakeReadOnly(
    ) {}

void NFCProxy::Watch(
    uint32_t in_id, WatchCallback callback) {}

void NFCProxy::CancelWatch(
    uint32_t in_id) {}
class NFC_Push_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void NFC_Push_ProxyToResponder::Run(
    NDEFErrorPtr in_error) {}
class NFC_MakeReadOnly_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void NFC_MakeReadOnly_ProxyToResponder::Run(
    NDEFErrorPtr in_error) {}
class NFC_Watch_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void NFC_Watch_ProxyToResponder::Run(
    NDEFErrorPtr in_error) {}

// static
bool NFCStubDispatch::Accept(
    NFC* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t NFCClient::OnWatch_Sym::IPCStableHash() {}
uint32_t NFCClient::OnError_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void NFCClientProxy::OnWatch(
    const WTF::Vector<uint32_t>& in_watch_ids, const WTF::String& in_serial_number, NDEFMessagePtr in_message) {}

void NFCClientProxy::OnError(
    NDEFErrorPtr in_error) {}

// static
bool NFCClientStubDispatch::Accept(
    NFCClient* impl,
    mojo::Message* message) {}

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

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



}  // device::mojom::blink


namespace mojo {


// static
bool StructTraits<::device::mojom::blink::NDEFError::DataView, ::device::mojom::blink::NDEFErrorPtr>::Read(
    ::device::mojom::blink::NDEFError::DataView input,
    ::device::mojom::blink::NDEFErrorPtr* output) {}


// static
bool StructTraits<::device::mojom::blink::NDEFRecord::DataView, ::device::mojom::blink::NDEFRecordPtr>::Read(
    ::device::mojom::blink::NDEFRecord::DataView input,
    ::device::mojom::blink::NDEFRecordPtr* output) {}


// static
bool StructTraits<::device::mojom::blink::NDEFMessage::DataView, ::device::mojom::blink::NDEFMessagePtr>::Read(
    ::device::mojom::blink::NDEFMessage::DataView input,
    ::device::mojom::blink::NDEFMessagePtr* output) {}


// static
bool StructTraits<::device::mojom::blink::NDEFWriteOptions::DataView, ::device::mojom::blink::NDEFWriteOptionsPtr>::Read(
    ::device::mojom::blink::NDEFWriteOptions::DataView input,
    ::device::mojom::blink::NDEFWriteOptionsPtr* 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 device::mojom::blink {


void NFCInterceptorForTesting::SetClient(::mojo::PendingRemote<NFCClient> client) {}
void NFCInterceptorForTesting::Push(NDEFMessagePtr message, NDEFWriteOptionsPtr options, PushCallback callback) {}
void NFCInterceptorForTesting::CancelPush() {}
void NFCInterceptorForTesting::MakeReadOnly(MakeReadOnlyCallback callback) {}
void NFCInterceptorForTesting::CancelMakeReadOnly() {}
void NFCInterceptorForTesting::Watch(uint32_t id, WatchCallback callback) {}
void NFCInterceptorForTesting::CancelWatch(uint32_t id) {}
NFCAsyncWaiter::NFCAsyncWaiter(
    NFC* proxy) :{}

NFCAsyncWaiter::~NFCAsyncWaiter() = default;

void NFCAsyncWaiter::Push(
    NDEFMessagePtr message, NDEFWriteOptionsPtr options, NDEFErrorPtr* out_error) {}

NDEFErrorPtr NFCAsyncWaiter::Push(
    NDEFMessagePtr message, NDEFWriteOptionsPtr options) {}

void NFCAsyncWaiter::MakeReadOnly(
    NDEFErrorPtr* out_error) {}

NDEFErrorPtr NFCAsyncWaiter::MakeReadOnly(
    ) {}

void NFCAsyncWaiter::Watch(
    uint32_t id, NDEFErrorPtr* out_error) {}

NDEFErrorPtr NFCAsyncWaiter::Watch(
    uint32_t id) {}




void NFCClientInterceptorForTesting::OnWatch(const WTF::Vector<uint32_t>& watch_ids, const WTF::String& serial_number, NDEFMessagePtr message) {}
void NFCClientInterceptorForTesting::OnError(NDEFErrorPtr error) {}
NFCClientAsyncWaiter::NFCClientAsyncWaiter(
    NFCClient* proxy) :{}

NFCClientAsyncWaiter::~NFCClientAsyncWaiter() = default;






}  // device::mojom::blink


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