chromium/out/Default/gen/third_party/blink/public/mojom/payments/payment_app.mojom.cc

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

#include "third_party/blink/public/mojom/payments/payment_app.mojom-import-headers.h"
#include "third_party/blink/public/mojom/payments/payment_app.mojom-test-utils.h"
#include "third_party/blink/public/common/manifest/manifest_mojom_traits.h"


namespace payments::mojom {
PaymentInstrument::PaymentInstrument()
    :{}

PaymentInstrument::PaymentInstrument(
    const std::string& name_in,
    std::vector<::blink::Manifest::ImageResource> icons_in,
    const std::string& method_in,
    const std::string& stringified_capabilities_in,
    std::vector<::payments::mojom::BasicCardNetwork> supported_networks_in)
    :{}

PaymentInstrument::~PaymentInstrument() = default;

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

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

CanMakePaymentEventData::CanMakePaymentEventData(
    const ::GURL& top_origin_in,
    const ::GURL& payment_request_origin_in,
    std::vector<::payments::mojom::PaymentMethodDataPtr> method_data_in,
    std::vector<::payments::mojom::PaymentDetailsModifierPtr> modifiers_in)
    :{}

CanMakePaymentEventData::~CanMakePaymentEventData() = default;

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

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

PaymentRequestEventData::PaymentRequestEventData(
    const ::GURL& top_origin_in,
    const ::GURL& payment_request_origin_in,
    const std::string& payment_request_id_in,
    std::vector<::payments::mojom::PaymentMethodDataPtr> method_data_in,
    ::payments::mojom::PaymentCurrencyAmountPtr total_in,
    std::vector<::payments::mojom::PaymentDetailsModifierPtr> modifiers_in,
    const std::string& instrument_key_in,
    ::payments::mojom::PaymentOptionsPtr payment_options_in,
    std::optional<std::vector<::payments::mojom::PaymentShippingOptionPtr>> shipping_options_in,
    ::mojo::PendingRemote<::payments::mojom::PaymentHandlerHost> payment_handler_host_in)
    :{}

PaymentRequestEventData::~PaymentRequestEventData() = default;

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

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

CanMakePaymentResponse::CanMakePaymentResponse(
    CanMakePaymentEventResponseType response_type_in,
    bool can_make_payment_in)
    :{}

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

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

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

PaymentHandlerResponse::PaymentHandlerResponse(
    const std::string& method_name_in,
    const std::string& stringified_details_in,
    PaymentEventResponseType response_type_in,
    const std::optional<std::string>& payer_name_in,
    const std::optional<std::string>& payer_email_in,
    const std::optional<std::string>& payer_phone_in,
    ::payments::mojom::PaymentAddressPtr shipping_address_in,
    const std::optional<std::string>& shipping_option_in)
    :{}

PaymentHandlerResponse::~PaymentHandlerResponse() = default;

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PaymentManager::Init_Sym::IPCStableHash() {}
uint32_t PaymentManager::DeletePaymentInstrument_Sym::IPCStableHash() {}
uint32_t PaymentManager::GetPaymentInstrument_Sym::IPCStableHash() {}
uint32_t PaymentManager::KeysOfPaymentInstruments_Sym::IPCStableHash() {}
uint32_t PaymentManager::HasPaymentInstrument_Sym::IPCStableHash() {}
uint32_t PaymentManager::SetPaymentInstrument_Sym::IPCStableHash() {}
uint32_t PaymentManager::ClearPaymentInstruments_Sym::IPCStableHash() {}
uint32_t PaymentManager::SetUserHint_Sym::IPCStableHash() {}
uint32_t PaymentManager::EnableDelegations_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PaymentManager_DeletePaymentInstrument_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_GetPaymentInstrument_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_KeysOfPaymentInstruments_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_HasPaymentInstrument_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_SetPaymentInstrument_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_ClearPaymentInstruments_ForwardToCallback
    : public mojo::MessageReceiver {};

class PaymentManager_EnableDelegations_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void PaymentManagerProxy::Init(
    const ::GURL& in_context_url, const std::string& in_service_worker_scope) {}

void PaymentManagerProxy::DeletePaymentInstrument(
    const std::string& in_instrument_key, DeletePaymentInstrumentCallback callback) {}

void PaymentManagerProxy::GetPaymentInstrument(
    const std::string& in_instrument_key, GetPaymentInstrumentCallback callback) {}

void PaymentManagerProxy::KeysOfPaymentInstruments(
    KeysOfPaymentInstrumentsCallback callback) {}

void PaymentManagerProxy::HasPaymentInstrument(
    const std::string& in_instrument_key, HasPaymentInstrumentCallback callback) {}

void PaymentManagerProxy::SetPaymentInstrument(
    const std::string& in_instrument_key, PaymentInstrumentPtr in_instrument, SetPaymentInstrumentCallback callback) {}

void PaymentManagerProxy::ClearPaymentInstruments(
    ClearPaymentInstrumentsCallback callback) {}

void PaymentManagerProxy::SetUserHint(
    const std::string& in_user_hint) {}

void PaymentManagerProxy::EnableDelegations(
    const std::vector<PaymentDelegation>& in_delegations, EnableDelegationsCallback callback) {}
class PaymentManager_DeletePaymentInstrument_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_DeletePaymentInstrument_ProxyToResponder::Run(
    PaymentHandlerStatus in_status) {}
class PaymentManager_GetPaymentInstrument_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_GetPaymentInstrument_ProxyToResponder::Run(
    PaymentInstrumentPtr in_instrument, PaymentHandlerStatus in_status) {}
class PaymentManager_KeysOfPaymentInstruments_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_KeysOfPaymentInstruments_ProxyToResponder::Run(
    const std::vector<std::string>& in_keys, PaymentHandlerStatus in_status) {}
class PaymentManager_HasPaymentInstrument_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_HasPaymentInstrument_ProxyToResponder::Run(
    PaymentHandlerStatus in_status) {}
class PaymentManager_SetPaymentInstrument_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_SetPaymentInstrument_ProxyToResponder::Run(
    PaymentHandlerStatus in_status) {}
class PaymentManager_ClearPaymentInstruments_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_ClearPaymentInstruments_ProxyToResponder::Run(
    PaymentHandlerStatus in_status) {}
class PaymentManager_EnableDelegations_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PaymentManager_EnableDelegations_ProxyToResponder::Run(
    PaymentHandlerStatus in_status) {}

// static
bool PaymentManagerStubDispatch::Accept(
    PaymentManager* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PaymentHandlerResponseCallback::OnResponseForAbortPayment_Sym::IPCStableHash() {}
uint32_t PaymentHandlerResponseCallback::OnResponseForCanMakePayment_Sym::IPCStableHash() {}
uint32_t PaymentHandlerResponseCallback::OnResponseForPaymentRequest_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PaymentHandlerResponseCallbackProxy::OnResponseForAbortPayment(
    bool in_payment_aborted) {}

void PaymentHandlerResponseCallbackProxy::OnResponseForCanMakePayment(
    CanMakePaymentResponsePtr in_response) {}

void PaymentHandlerResponseCallbackProxy::OnResponseForPaymentRequest(
    PaymentHandlerResponsePtr in_response) {}

// static
bool PaymentHandlerResponseCallbackStubDispatch::Accept(
    PaymentHandlerResponseCallback* impl,
    mojo::Message* message) {}

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

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



}  // payments::mojom


namespace mojo {


// static
bool StructTraits<::payments::mojom::PaymentInstrument::DataView, ::payments::mojom::PaymentInstrumentPtr>::Read(
    ::payments::mojom::PaymentInstrument::DataView input,
    ::payments::mojom::PaymentInstrumentPtr* output) {}


// static
bool StructTraits<::payments::mojom::CanMakePaymentEventData::DataView, ::payments::mojom::CanMakePaymentEventDataPtr>::Read(
    ::payments::mojom::CanMakePaymentEventData::DataView input,
    ::payments::mojom::CanMakePaymentEventDataPtr* output) {}


// static
bool StructTraits<::payments::mojom::PaymentRequestEventData::DataView, ::payments::mojom::PaymentRequestEventDataPtr>::Read(
    ::payments::mojom::PaymentRequestEventData::DataView input,
    ::payments::mojom::PaymentRequestEventDataPtr* output) {}


// static
bool StructTraits<::payments::mojom::CanMakePaymentResponse::DataView, ::payments::mojom::CanMakePaymentResponsePtr>::Read(
    ::payments::mojom::CanMakePaymentResponse::DataView input,
    ::payments::mojom::CanMakePaymentResponsePtr* output) {}


// static
bool StructTraits<::payments::mojom::PaymentHandlerResponse::DataView, ::payments::mojom::PaymentHandlerResponsePtr>::Read(
    ::payments::mojom::PaymentHandlerResponse::DataView input,
    ::payments::mojom::PaymentHandlerResponsePtr* 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 payments::mojom {


void PaymentManagerInterceptorForTesting::Init(const ::GURL& context_url, const std::string& service_worker_scope) {}
void PaymentManagerInterceptorForTesting::DeletePaymentInstrument(const std::string& instrument_key, DeletePaymentInstrumentCallback callback) {}
void PaymentManagerInterceptorForTesting::GetPaymentInstrument(const std::string& instrument_key, GetPaymentInstrumentCallback callback) {}
void PaymentManagerInterceptorForTesting::KeysOfPaymentInstruments(KeysOfPaymentInstrumentsCallback callback) {}
void PaymentManagerInterceptorForTesting::HasPaymentInstrument(const std::string& instrument_key, HasPaymentInstrumentCallback callback) {}
void PaymentManagerInterceptorForTesting::SetPaymentInstrument(const std::string& instrument_key, PaymentInstrumentPtr instrument, SetPaymentInstrumentCallback callback) {}
void PaymentManagerInterceptorForTesting::ClearPaymentInstruments(ClearPaymentInstrumentsCallback callback) {}
void PaymentManagerInterceptorForTesting::SetUserHint(const std::string& user_hint) {}
void PaymentManagerInterceptorForTesting::EnableDelegations(const std::vector<PaymentDelegation>& delegations, EnableDelegationsCallback callback) {}
PaymentManagerAsyncWaiter::PaymentManagerAsyncWaiter(
    PaymentManager* proxy) :{}

PaymentManagerAsyncWaiter::~PaymentManagerAsyncWaiter() = default;

void PaymentManagerAsyncWaiter::DeletePaymentInstrument(
    const std::string& instrument_key, PaymentHandlerStatus* out_status) {}

PaymentHandlerStatus PaymentManagerAsyncWaiter::DeletePaymentInstrument(
    const std::string& instrument_key) {}

void PaymentManagerAsyncWaiter::GetPaymentInstrument(
    const std::string& instrument_key, PaymentInstrumentPtr* out_instrument, PaymentHandlerStatus* out_status) {}



void PaymentManagerAsyncWaiter::KeysOfPaymentInstruments(
    std::vector<std::string>* out_keys, PaymentHandlerStatus* out_status) {}



void PaymentManagerAsyncWaiter::HasPaymentInstrument(
    const std::string& instrument_key, PaymentHandlerStatus* out_status) {}

PaymentHandlerStatus PaymentManagerAsyncWaiter::HasPaymentInstrument(
    const std::string& instrument_key) {}

void PaymentManagerAsyncWaiter::SetPaymentInstrument(
    const std::string& instrument_key, PaymentInstrumentPtr instrument, PaymentHandlerStatus* out_status) {}

PaymentHandlerStatus PaymentManagerAsyncWaiter::SetPaymentInstrument(
    const std::string& instrument_key, PaymentInstrumentPtr instrument) {}

void PaymentManagerAsyncWaiter::ClearPaymentInstruments(
    PaymentHandlerStatus* out_status) {}

PaymentHandlerStatus PaymentManagerAsyncWaiter::ClearPaymentInstruments(
    ) {}

void PaymentManagerAsyncWaiter::EnableDelegations(
    const std::vector<PaymentDelegation>& delegations, PaymentHandlerStatus* out_status) {}

PaymentHandlerStatus PaymentManagerAsyncWaiter::EnableDelegations(
    const std::vector<PaymentDelegation>& delegations) {}




void PaymentHandlerResponseCallbackInterceptorForTesting::OnResponseForAbortPayment(bool payment_aborted) {}
void PaymentHandlerResponseCallbackInterceptorForTesting::OnResponseForCanMakePayment(CanMakePaymentResponsePtr response) {}
void PaymentHandlerResponseCallbackInterceptorForTesting::OnResponseForPaymentRequest(PaymentHandlerResponsePtr response) {}
PaymentHandlerResponseCallbackAsyncWaiter::PaymentHandlerResponseCallbackAsyncWaiter(
    PaymentHandlerResponseCallback* proxy) :{}

PaymentHandlerResponseCallbackAsyncWaiter::~PaymentHandlerResponseCallbackAsyncWaiter() = default;






}  // payments::mojom


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