#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_SHARED_STORAGE_SHARED_STORAGE_WORKLET_SERVICE_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_SHARED_STORAGE_SHARED_STORAGE_WORKLET_SERVICE_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 "third_party/blink/public/mojom/shared_storage/shared_storage_worklet_service.mojom-features.h"
#include "third_party/blink/public/mojom/shared_storage/shared_storage_worklet_service.mojom-shared.h"
#include "third_party/blink/public/mojom/shared_storage/shared_storage_worklet_service.mojom-forward.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "third_party/blink/public/mojom/private_aggregation/private_aggregation_host.mojom-forward.h"
#include "services/network/public/mojom/url_loader_factory.mojom-forward.h"
#include "third_party/blink/public/mojom/shared_storage/shared_storage.mojom.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-forward.h"
#include "third_party/blink/public/mojom/messaging/cloneable_message.mojom.h"
#include "third_party/blink/public/mojom/devtools/console_message.mojom-forward.h"
#include "url/mojom/url.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"
#include "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class SharedStorageEntriesListenerProxy;
template <typename ImplRefTraits>
class SharedStorageEntriesListenerStub;
class SharedStorageEntriesListenerRequestValidator;
class BLINK_COMMON_EXPORT SharedStorageEntriesListener
: public SharedStorageEntriesListenerInterfaceBase { … };
class SharedStorageWorkletServiceClientProxy;
template <typename ImplRefTraits>
class SharedStorageWorkletServiceClientStub;
class SharedStorageWorkletServiceClientRequestValidator;
class SharedStorageWorkletServiceClientResponseValidator;
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceClient
: public SharedStorageWorkletServiceClientInterfaceBase { … };
class SharedStorageWorkletServiceProxy;
template <typename ImplRefTraits>
class SharedStorageWorkletServiceStub;
class SharedStorageWorkletServiceRequestValidator;
class SharedStorageWorkletServiceResponseValidator;
class BLINK_COMMON_EXPORT SharedStorageWorkletService
: public SharedStorageWorkletServiceInterfaceBase { … };
class BLINK_COMMON_EXPORT SharedStorageEntriesListenerProxy
: public SharedStorageEntriesListener { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceClientProxy
: public SharedStorageWorkletServiceClient { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceProxy
: public SharedStorageWorkletService { … };
class BLINK_COMMON_EXPORT SharedStorageEntriesListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SharedStorageEntriesListener>>
class SharedStorageEntriesListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SharedStorageEntriesListenerStub() = default;
~SharedStorageEntriesListenerStub() 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 BLINK_COMMON_EXPORT SharedStorageWorkletServiceClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SharedStorageWorkletServiceClient>>
class SharedStorageWorkletServiceClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SharedStorageWorkletServiceClientStub() = default;
~SharedStorageWorkletServiceClientStub() 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 BLINK_COMMON_EXPORT SharedStorageWorkletServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SharedStorageWorkletService>>
class SharedStorageWorkletServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SharedStorageWorkletServiceStub() = default;
~SharedStorageWorkletServiceStub() 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 BLINK_COMMON_EXPORT SharedStorageEntriesListenerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceClientResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT SharedStorageWorkletServiceResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT SharedStorageKeyAndOrValue { … };
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT PrivateAggregationOperationDetails { … };
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SharedStorageKeyAndOrValuePtr SharedStorageKeyAndOrValue::Clone() const { … }
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>*>
bool SharedStorageKeyAndOrValue::Equals(const T& other_struct) const { … }
template <typename T, SharedStorageKeyAndOrValue::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PrivateAggregationOperationDetailsPtr PrivateAggregationOperationDetails::Clone() const { … }
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>*>
bool PrivateAggregationOperationDetails::Equals(const T& other_struct) const { … }
template <typename T, PrivateAggregationOperationDetails::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::SharedStorageKeyAndOrValue::DataView,
::blink::mojom::SharedStorageKeyAndOrValuePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::PrivateAggregationOperationDetails::DataView,
::blink::mojom::PrivateAggregationOperationDetailsPtr> { … };
}
#endif