#ifndef COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_CACHE_STORAGE_CONTROL_MOJOM_H_
#define COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_CACHE_STORAGE_CONTROL_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 "components/services/storage/public/mojom/cache_storage_control.mojom-features.h"
#include "components/services/storage/public/mojom/cache_storage_control.mojom-shared.h"
#include "components/services/storage/public/mojom/cache_storage_control.mojom-forward.h"
#include "components/services/storage/public/mojom/buckets/bucket_locator.mojom.h"
#include "components/services/storage/public/mojom/storage_policy_update.mojom-forward.h"
#include "components/services/storage/public/mojom/storage_usage_info.mojom-forward.h"
#include "services/network/public/mojom/cross_origin_embedder_policy.mojom.h"
#include "services/network/public/mojom/document_isolation_policy.mojom.h"
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-forward.h"
#include "third_party/blink/public/mojom/storage_key/storage_key.mojom-forward.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 storage::mojom {
class CacheStorageObserverProxy;
template <typename ImplRefTraits>
class CacheStorageObserverStub;
class CacheStorageObserverRequestValidator;
class CacheStorageObserver
: public CacheStorageObserverInterfaceBase { … };
class CacheStorageControlProxy;
template <typename ImplRefTraits>
class CacheStorageControlStub;
class CacheStorageControlRequestValidator;
class CacheStorageControl
: public CacheStorageControlInterfaceBase { … };
class CacheStorageObserverProxy
: public CacheStorageObserver { … };
class CacheStorageControlProxy
: public CacheStorageControl { … };
class CacheStorageObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CacheStorageObserver>>
class CacheStorageObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CacheStorageObserverStub() = default;
~CacheStorageObserverStub() 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 CacheStorageControlStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CacheStorageControl>>
class CacheStorageControlStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CacheStorageControlStub() = default;
~CacheStorageControlStub() 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 CacheStorageObserverRequestValidator : public mojo::MessageReceiver { … };
class CacheStorageControlRequestValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif