#ifndef SERVICES_NETWORK_PUBLIC_MOJOM_TRUST_TOKEN_ACCESS_OBSERVER_MOJOM_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_TRUST_TOKEN_ACCESS_OBSERVER_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/network/public/mojom/trust_token_access_observer.mojom-features.h"
#include "services/network/public/mojom/trust_token_access_observer.mojom-shared.h"
#include "services/network/public/mojom/trust_token_access_observer.mojom-forward.h"
#include "url/mojom/origin.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 network::mojom {
class TrustTokenAccessObserverProxy;
template <typename ImplRefTraits>
class TrustTokenAccessObserverStub;
class TrustTokenAccessObserverRequestValidator;
class TrustTokenAccessObserver
: public TrustTokenAccessObserverInterfaceBase { … };
class TrustTokenAccessObserverProxy
: public TrustTokenAccessObserver { … };
class TrustTokenAccessObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<TrustTokenAccessObserver>>
class TrustTokenAccessObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
TrustTokenAccessObserverStub() = default;
~TrustTokenAccessObserverStub() 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 TrustTokenAccessObserverRequestValidator : public mojo::MessageReceiver { … };
class TrustTokenAccessDetails { … };
class TrustTokenIssuanceDetails { … };
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class TrustTokenRedemptionDetails { … };
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class TrustTokenSigningDetails { … };
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
TrustTokenAccessDetailsPtr TrustTokenAccessDetails::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, TrustTokenAccessDetails>::value>::type*>
bool TrustTokenAccessDetails::Equals(const T& other) const { … }
template <typename StructPtrType>
TrustTokenIssuanceDetailsPtr TrustTokenIssuanceDetails::Clone() const { … }
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>*>
bool TrustTokenIssuanceDetails::Equals(const T& other_struct) const { … }
template <typename T, TrustTokenIssuanceDetails::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
TrustTokenRedemptionDetailsPtr TrustTokenRedemptionDetails::Clone() const { … }
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>*>
bool TrustTokenRedemptionDetails::Equals(const T& other_struct) const { … }
template <typename T, TrustTokenRedemptionDetails::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
TrustTokenSigningDetailsPtr TrustTokenSigningDetails::Clone() const { … }
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>*>
bool TrustTokenSigningDetails::Equals(const T& other_struct) const { … }
template <typename T, TrustTokenSigningDetails::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::network::mojom::TrustTokenIssuanceDetails::DataView,
::network::mojom::TrustTokenIssuanceDetailsPtr> { … };
template <>
struct StructTraits<::network::mojom::TrustTokenRedemptionDetails::DataView,
::network::mojom::TrustTokenRedemptionDetailsPtr> { … };
template <>
struct StructTraits<::network::mojom::TrustTokenSigningDetails::DataView,
::network::mojom::TrustTokenSigningDetailsPtr> { … };
template <>
struct UnionTraits<::network::mojom::TrustTokenAccessDetails::DataView,
::network::mojom::TrustTokenAccessDetailsPtr> { … };
}
#endif