#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PAYMENTS_PAYMENT_REQUEST_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PAYMENTS_PAYMENT_REQUEST_MOJOM_BLINK_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "third_party/blink/public/mojom/payments/payment_request.mojom-features.h"
#include "third_party/blink/public/mojom/payments/payment_request.mojom-shared.h"
#include "third_party/blink/public/mojom/payments/payment_request.mojom-blink-forward.h"
#include "components/payments/mojom/payment_request_data.mojom-blink.h"
#include "mojo/public/mojom/base/time.mojom-blink.h"
#include "third_party/blink/public/mojom/payments/payment_credential.mojom-blink-forward.h"
#include "url/mojom/origin.mojom-blink.h"
#include "url/mojom/url.mojom-blink.h"
#include "third_party/blink/public/mojom/webauthn/authenticator.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace payments::mojom::blink {
class PaymentRequestClientProxy;
template <typename ImplRefTraits>
class PaymentRequestClientStub;
class PaymentRequestClientRequestValidator;
class PaymentRequestClientResponseValidator;
class PLATFORM_EXPORT PaymentRequestClient
: public PaymentRequestClientInterfaceBase { … };
class PaymentRequestProxy;
template <typename ImplRefTraits>
class PaymentRequestStub;
class PaymentRequestRequestValidator;
class PLATFORM_EXPORT PaymentRequest
: public PaymentRequestInterfaceBase { … };
class PLATFORM_EXPORT PaymentRequestClientProxy
: public PaymentRequestClient { … };
class PLATFORM_EXPORT PaymentRequestProxy
: public PaymentRequest { … };
class PLATFORM_EXPORT PaymentRequestClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PaymentRequestClient>>
class PaymentRequestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PaymentRequestClientStub() = default;
~PaymentRequestClientStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class PLATFORM_EXPORT PaymentRequestStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PaymentRequest>>
class PaymentRequestStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PaymentRequestStub() = default;
~PaymentRequestStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class PLATFORM_EXPORT PaymentRequestClientRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT PaymentRequestRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT PaymentRequestClientResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT PayerDetail { … };
template <typename T, PayerDetail::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PayerDetail::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PayerDetail::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PayerDetail::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentResponse { … };
template <typename T, PaymentResponse::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentResponse::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentResponse::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentResponse::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentItem { … };
template <typename T, PaymentItem::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentItem::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentItem::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentItem::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentShippingOption { … };
template <typename T, PaymentShippingOption::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentShippingOption::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentShippingOption::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentShippingOption::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT SecurePaymentConfirmationRequest { … };
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT NetworkOrIssuerInformation { … };
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentMethodData { … };
template <typename T, PaymentMethodData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentMethodData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentMethodData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentMethodData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentDetailsModifier { … };
template <typename T, PaymentDetailsModifier::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentDetailsModifier::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentDetailsModifier::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentDetailsModifier::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentDetails { … };
template <typename T, PaymentDetails::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentDetails::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentDetails::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentDetails::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT PaymentOptions { … };
template <typename T, PaymentOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaymentOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaymentOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaymentOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentResponsePtr PaymentResponse::Clone() const { … }
template <typename T, PaymentResponse::EnableIfSame<T>*>
bool PaymentResponse::Equals(const T& other_struct) const { … }
template <typename T, PaymentResponse::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PayerDetailPtr PayerDetail::Clone() const { … }
template <typename T, PayerDetail::EnableIfSame<T>*>
bool PayerDetail::Equals(const T& other_struct) const { … }
template <typename T, PayerDetail::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentItemPtr PaymentItem::Clone() const { … }
template <typename T, PaymentItem::EnableIfSame<T>*>
bool PaymentItem::Equals(const T& other_struct) const { … }
template <typename T, PaymentItem::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentShippingOptionPtr PaymentShippingOption::Clone() const { … }
template <typename T, PaymentShippingOption::EnableIfSame<T>*>
bool PaymentShippingOption::Equals(const T& other_struct) const { … }
template <typename T, PaymentShippingOption::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SecurePaymentConfirmationRequestPtr SecurePaymentConfirmationRequest::Clone() const { … }
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>*>
bool SecurePaymentConfirmationRequest::Equals(const T& other_struct) const { … }
template <typename T, SecurePaymentConfirmationRequest::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
NetworkOrIssuerInformationPtr NetworkOrIssuerInformation::Clone() const { … }
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>*>
bool NetworkOrIssuerInformation::Equals(const T& other_struct) const { … }
template <typename T, NetworkOrIssuerInformation::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentMethodDataPtr PaymentMethodData::Clone() const { … }
template <typename T, PaymentMethodData::EnableIfSame<T>*>
bool PaymentMethodData::Equals(const T& other_struct) const { … }
template <typename T, PaymentMethodData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentDetailsModifierPtr PaymentDetailsModifier::Clone() const { … }
template <typename T, PaymentDetailsModifier::EnableIfSame<T>*>
bool PaymentDetailsModifier::Equals(const T& other_struct) const { … }
template <typename T, PaymentDetailsModifier::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentDetailsPtr PaymentDetails::Clone() const { … }
template <typename T, PaymentDetails::EnableIfSame<T>*>
bool PaymentDetails::Equals(const T& other_struct) const { … }
template <typename T, PaymentDetails::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaymentOptionsPtr PaymentOptions::Clone() const { … }
template <typename T, PaymentOptions::EnableIfSame<T>*>
bool PaymentOptions::Equals(const T& other_struct) const { … }
template <typename T, PaymentOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentResponse::DataView,
::payments::mojom::blink::PaymentResponsePtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PayerDetail::DataView,
::payments::mojom::blink::PayerDetailPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentItem::DataView,
::payments::mojom::blink::PaymentItemPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentShippingOption::DataView,
::payments::mojom::blink::PaymentShippingOptionPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::SecurePaymentConfirmationRequest::DataView,
::payments::mojom::blink::SecurePaymentConfirmationRequestPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::NetworkOrIssuerInformation::DataView,
::payments::mojom::blink::NetworkOrIssuerInformationPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentMethodData::DataView,
::payments::mojom::blink::PaymentMethodDataPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentDetailsModifier::DataView,
::payments::mojom::blink::PaymentDetailsModifierPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentDetails::DataView,
::payments::mojom::blink::PaymentDetailsPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::payments::mojom::blink::PaymentOptions::DataView,
::payments::mojom::blink::PaymentOptionsPtr> { … };
}
#endif