#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_SMART_CARD_MOJOM_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_SMART_CARD_MOJOM_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 "services/device/public/mojom/smart_card.mojom-features.h"
#include "services/device/public/mojom/smart_card.mojom-shared.h"
#include "services/device/public/mojom/smart_card.mojom-forward.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include <string>
#include <vector>
#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"
namespace device::mojom {
class SmartCardTransactionProxy;
template <typename ImplRefTraits>
class SmartCardTransactionStub;
class SmartCardTransactionRequestValidator;
class SmartCardTransactionResponseValidator;
class SmartCardTransaction
: public SmartCardTransactionInterfaceBase { … };
class SmartCardConnectionProxy;
template <typename ImplRefTraits>
class SmartCardConnectionStub;
class SmartCardConnectionRequestValidator;
class SmartCardConnectionResponseValidator;
class SmartCardConnection
: public SmartCardConnectionInterfaceBase { … };
class SmartCardContextProxy;
template <typename ImplRefTraits>
class SmartCardContextStub;
class SmartCardContextRequestValidator;
class SmartCardContextResponseValidator;
class SmartCardContext
: public SmartCardContextInterfaceBase { … };
class SmartCardContextFactoryProxy;
template <typename ImplRefTraits>
class SmartCardContextFactoryStub;
class SmartCardContextFactoryRequestValidator;
class SmartCardContextFactoryResponseValidator;
class SmartCardContextFactory
: public SmartCardContextFactoryInterfaceBase { … };
class SmartCardTransactionProxy
: public SmartCardTransaction { … };
class SmartCardConnectionProxy
: public SmartCardConnection { … };
class SmartCardContextProxy
: public SmartCardContext { … };
class SmartCardContextFactoryProxy
: public SmartCardContextFactory { … };
class SmartCardTransactionStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SmartCardTransaction>>
class SmartCardTransactionStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SmartCardTransactionStub() = default;
~SmartCardTransactionStub() 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 SmartCardConnectionStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SmartCardConnection>>
class SmartCardConnectionStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SmartCardConnectionStub() = default;
~SmartCardConnectionStub() 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 SmartCardContextStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SmartCardContext>>
class SmartCardContextStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SmartCardContextStub() = default;
~SmartCardContextStub() 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 SmartCardContextFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SmartCardContextFactory>>
class SmartCardContextFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SmartCardContextFactoryStub() = default;
~SmartCardContextFactoryStub() 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 SmartCardTransactionRequestValidator : public mojo::MessageReceiver { … };
class SmartCardConnectionRequestValidator : public mojo::MessageReceiver { … };
class SmartCardContextRequestValidator : public mojo::MessageReceiver { … };
class SmartCardContextFactoryRequestValidator : public mojo::MessageReceiver { … };
class SmartCardTransactionResponseValidator : public mojo::MessageReceiver { … };
class SmartCardConnectionResponseValidator : public mojo::MessageReceiver { … };
class SmartCardContextResponseValidator : public mojo::MessageReceiver { … };
class SmartCardContextFactoryResponseValidator : public mojo::MessageReceiver { … };
class SmartCardProtocols { … };
template <typename T, SmartCardProtocols::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardProtocols::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardProtocols::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardProtocols::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SmartCardResult { … };
class SmartCardStatusChangeResult { … };
class SmartCardListReadersResult { … };
class SmartCardCreateContextResult { … };
class SmartCardConnectResult { … };
class SmartCardDataResult { … };
class SmartCardStatusResult { … };
class SmartCardTransactionResult { … };
class SmartCardReaderStateFlags { … };
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SmartCardReaderStateIn { … };
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SmartCardReaderStateOut { … };
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SmartCardStatus { … };
template <typename T, SmartCardStatus::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardStatus::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardStatus::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardStatus::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SmartCardConnectSuccess { … };
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
SmartCardResultPtr SmartCardResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardResult>::value>::type*>
bool SmartCardResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardStatusChangeResultPtr SmartCardStatusChangeResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardStatusChangeResult>::value>::type*>
bool SmartCardStatusChangeResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardListReadersResultPtr SmartCardListReadersResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardListReadersResult>::value>::type*>
bool SmartCardListReadersResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardCreateContextResultPtr SmartCardCreateContextResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardCreateContextResult>::value>::type*>
bool SmartCardCreateContextResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardConnectResultPtr SmartCardConnectResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardConnectResult>::value>::type*>
bool SmartCardConnectResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardDataResultPtr SmartCardDataResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardDataResult>::value>::type*>
bool SmartCardDataResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardStatusResultPtr SmartCardStatusResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardStatusResult>::value>::type*>
bool SmartCardStatusResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
SmartCardTransactionResultPtr SmartCardTransactionResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, SmartCardTransactionResult>::value>::type*>
bool SmartCardTransactionResult::Equals(const T& other) const { … }
template <typename StructPtrType>
SmartCardReaderStateFlagsPtr SmartCardReaderStateFlags::Clone() const { … }
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>*>
bool SmartCardReaderStateFlags::Equals(const T& other_struct) const { … }
template <typename T, SmartCardReaderStateFlags::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SmartCardReaderStateInPtr SmartCardReaderStateIn::Clone() const { … }
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>*>
bool SmartCardReaderStateIn::Equals(const T& other_struct) const { … }
template <typename T, SmartCardReaderStateIn::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SmartCardReaderStateOutPtr SmartCardReaderStateOut::Clone() const { … }
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>*>
bool SmartCardReaderStateOut::Equals(const T& other_struct) const { … }
template <typename T, SmartCardReaderStateOut::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SmartCardProtocolsPtr SmartCardProtocols::Clone() const { … }
template <typename T, SmartCardProtocols::EnableIfSame<T>*>
bool SmartCardProtocols::Equals(const T& other_struct) const { … }
template <typename T, SmartCardProtocols::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SmartCardStatusPtr SmartCardStatus::Clone() const { … }
template <typename T, SmartCardStatus::EnableIfSame<T>*>
bool SmartCardStatus::Equals(const T& other_struct) const { … }
template <typename T, SmartCardStatus::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SmartCardConnectSuccessPtr SmartCardConnectSuccess::Clone() const { … }
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>*>
bool SmartCardConnectSuccess::Equals(const T& other_struct) const { … }
template <typename T, SmartCardConnectSuccess::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::device::mojom::SmartCardReaderStateFlags::DataView,
::device::mojom::SmartCardReaderStateFlagsPtr> { … };
template <>
struct StructTraits<::device::mojom::SmartCardReaderStateIn::DataView,
::device::mojom::SmartCardReaderStateInPtr> { … };
template <>
struct StructTraits<::device::mojom::SmartCardReaderStateOut::DataView,
::device::mojom::SmartCardReaderStateOutPtr> { … };
template <>
struct StructTraits<::device::mojom::SmartCardProtocols::DataView,
::device::mojom::SmartCardProtocolsPtr> { … };
template <>
struct StructTraits<::device::mojom::SmartCardStatus::DataView,
::device::mojom::SmartCardStatusPtr> { … };
template <>
struct StructTraits<::device::mojom::SmartCardConnectSuccess::DataView,
::device::mojom::SmartCardConnectSuccessPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardResult::DataView,
::device::mojom::SmartCardResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardStatusChangeResult::DataView,
::device::mojom::SmartCardStatusChangeResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardListReadersResult::DataView,
::device::mojom::SmartCardListReadersResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardCreateContextResult::DataView,
::device::mojom::SmartCardCreateContextResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardConnectResult::DataView,
::device::mojom::SmartCardConnectResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardDataResult::DataView,
::device::mojom::SmartCardDataResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardStatusResult::DataView,
::device::mojom::SmartCardStatusResultPtr> { … };
template <>
struct UnionTraits<::device::mojom::SmartCardTransactionResult::DataView,
::device::mojom::SmartCardTransactionResultPtr> { … };
}
#endif