#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_SHARED_STORAGE_SHARED_STORAGE_WORKLET_SERVICE_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_SHARED_STORAGE_SHARED_STORAGE_WORKLET_SERVICE_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/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-blink-forward.h"
#include "mojo/public/mojom/base/string16.mojom-blink.h"
#include "third_party/blink/public/mojom/private_aggregation/private_aggregation_host.mojom-blink-forward.h"
#include "services/network/public/mojom/url_loader_factory.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/shared_storage/shared_storage.mojom-blink.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/messaging/cloneable_message.mojom-blink.h"
#include "third_party/blink/public/mojom/devtools/console_message.mojom-blink-forward.h"
#include "url/mojom/url.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/modules/modules_export.h"
namespace blink::mojom::blink {
class SharedStorageEntriesListenerProxy;
template <typename ImplRefTraits>
class SharedStorageEntriesListenerStub;
class SharedStorageEntriesListenerRequestValidator;
class MODULES_EXPORT SharedStorageEntriesListener
: public SharedStorageEntriesListenerInterfaceBase { … };
class SharedStorageWorkletServiceClientProxy;
template <typename ImplRefTraits>
class SharedStorageWorkletServiceClientStub;
class SharedStorageWorkletServiceClientRequestValidator;
class SharedStorageWorkletServiceClientResponseValidator;
class MODULES_EXPORT SharedStorageWorkletServiceClient
: public SharedStorageWorkletServiceClientInterfaceBase { … };
class SharedStorageWorkletServiceProxy;
template <typename ImplRefTraits>
class SharedStorageWorkletServiceStub;
class SharedStorageWorkletServiceRequestValidator;
class SharedStorageWorkletServiceResponseValidator;
class MODULES_EXPORT SharedStorageWorkletService
: public SharedStorageWorkletServiceInterfaceBase { … };
class MODULES_EXPORT SharedStorageEntriesListenerProxy
: public SharedStorageEntriesListener { … };
class MODULES_EXPORT SharedStorageWorkletServiceClientProxy
: public SharedStorageWorkletServiceClient { … };
class MODULES_EXPORT SharedStorageWorkletServiceProxy
: public SharedStorageWorkletService { … };
class MODULES_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 MODULES_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 MODULES_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 MODULES_EXPORT SharedStorageEntriesListenerRequestValidator : public mojo::MessageReceiver { … };
class MODULES_EXPORT SharedStorageWorkletServiceClientRequestValidator : public mojo::MessageReceiver { … };
class MODULES_EXPORT SharedStorageWorkletServiceRequestValidator : public mojo::MessageReceiver { … };
class MODULES_EXPORT SharedStorageWorkletServiceClientResponseValidator : public mojo::MessageReceiver { … };
class MODULES_EXPORT SharedStorageWorkletServiceResponseValidator : public mojo::MessageReceiver { … };
class MODULES_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 MODULES_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 MODULES_EXPORT StructTraits<::blink::mojom::blink::SharedStorageKeyAndOrValue::DataView,
::blink::mojom::blink::SharedStorageKeyAndOrValuePtr> { … };
template <>
struct MODULES_EXPORT StructTraits<::blink::mojom::blink::PrivateAggregationOperationDetails::DataView,
::blink::mojom::blink::PrivateAggregationOperationDetailsPtr> { … };
}
#endif