#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_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/cache_storage/cache_storage.mojom-features.h"
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-shared.h"
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-forward.h"
#include "mojo/public/mojom/base/big_buffer.mojom.h"
#include "mojo/public/mojom/base/read_only_buffer.mojom-forward.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_response.mojom.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class CacheStorageCacheProxy;
template <typename ImplRefTraits>
class CacheStorageCacheStub;
class CacheStorageCacheRequestValidator;
class CacheStorageCacheResponseValidator;
class BLINK_COMMON_EXPORT CacheStorageCache
: public CacheStorageCacheInterfaceBase { … };
class CacheStorageProxy;
template <typename ImplRefTraits>
class CacheStorageStub;
class CacheStorageRequestValidator;
class CacheStorageResponseValidator;
class BLINK_COMMON_EXPORT CacheStorage
: public CacheStorageInterfaceBase { … };
class BLINK_COMMON_EXPORT CacheStorageCacheProxy
: public CacheStorageCache { … };
class BLINK_COMMON_EXPORT CacheStorageProxy
: public CacheStorage { … };
class BLINK_COMMON_EXPORT CacheStorageCacheStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CacheStorageCache>>
class CacheStorageCacheStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CacheStorageCacheStub() = default;
~CacheStorageCacheStub() 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 CacheStorageStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CacheStorage>>
class CacheStorageStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CacheStorageStub() = default;
~CacheStorageStub() 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 CacheStorageCacheRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT CacheStorageRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT CacheStorageCacheResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT CacheStorageResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT CacheStorageVerboseError { … };
template <typename T, CacheStorageVerboseError::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CacheStorageVerboseError::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CacheStorageVerboseError::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CacheStorageVerboseError::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT CacheQueryOptions { … };
template <typename T, CacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT OpenResult { … };
class BLINK_COMMON_EXPORT MatchResult { … };
class BLINK_COMMON_EXPORT MatchAllResult { … };
class BLINK_COMMON_EXPORT GetAllMatchedEntriesResult { … };
class BLINK_COMMON_EXPORT CacheKeysResult { … };
class BLINK_COMMON_EXPORT MultiCacheQueryOptions { … };
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT BatchOperation { … };
template <typename T, BatchOperation::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BatchOperation::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BatchOperation::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BatchOperation::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT EagerResponse { … };
template <typename T, EagerResponse::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, EagerResponse::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, EagerResponse::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, EagerResponse::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT CacheEntry { … };
template <typename T, CacheEntry::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CacheEntry::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CacheEntry::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CacheEntry::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
OpenResultPtr OpenResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, OpenResult>::value>::type*>
bool OpenResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
MatchResultPtr MatchResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, MatchResult>::value>::type*>
bool MatchResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
MatchAllResultPtr MatchAllResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, MatchAllResult>::value>::type*>
bool MatchAllResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
GetAllMatchedEntriesResultPtr GetAllMatchedEntriesResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, GetAllMatchedEntriesResult>::value>::type*>
bool GetAllMatchedEntriesResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
CacheKeysResultPtr CacheKeysResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, CacheKeysResult>::value>::type*>
bool CacheKeysResult::Equals(const T& other) const { … }
template <typename StructPtrType>
CacheStorageVerboseErrorPtr CacheStorageVerboseError::Clone() const { … }
template <typename T, CacheStorageVerboseError::EnableIfSame<T>*>
bool CacheStorageVerboseError::Equals(const T& other_struct) const { … }
template <typename T, CacheStorageVerboseError::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CacheQueryOptionsPtr CacheQueryOptions::Clone() const { … }
template <typename T, CacheQueryOptions::EnableIfSame<T>*>
bool CacheQueryOptions::Equals(const T& other_struct) const { … }
template <typename T, CacheQueryOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
MultiCacheQueryOptionsPtr MultiCacheQueryOptions::Clone() const { … }
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>*>
bool MultiCacheQueryOptions::Equals(const T& other_struct) const { … }
template <typename T, MultiCacheQueryOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BatchOperationPtr BatchOperation::Clone() const { … }
template <typename T, BatchOperation::EnableIfSame<T>*>
bool BatchOperation::Equals(const T& other_struct) const { … }
template <typename T, BatchOperation::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
EagerResponsePtr EagerResponse::Clone() const { … }
template <typename T, EagerResponse::EnableIfSame<T>*>
bool EagerResponse::Equals(const T& other_struct) const { … }
template <typename T, EagerResponse::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CacheEntryPtr CacheEntry::Clone() const { … }
template <typename T, CacheEntry::EnableIfSame<T>*>
bool CacheEntry::Equals(const T& other_struct) const { … }
template <typename T, CacheEntry::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::CacheStorageVerboseError::DataView,
::blink::mojom::CacheStorageVerboseErrorPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::CacheQueryOptions::DataView,
::blink::mojom::CacheQueryOptionsPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::MultiCacheQueryOptions::DataView,
::blink::mojom::MultiCacheQueryOptionsPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::BatchOperation::DataView,
::blink::mojom::BatchOperationPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::EagerResponse::DataView,
::blink::mojom::EagerResponsePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::CacheEntry::DataView,
::blink::mojom::CacheEntryPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::OpenResult::DataView,
::blink::mojom::OpenResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::MatchResult::DataView,
::blink::mojom::MatchResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::MatchAllResult::DataView,
::blink::mojom::MatchAllResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::GetAllMatchedEntriesResult::DataView,
::blink::mojom::GetAllMatchedEntriesResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::CacheKeysResult::DataView,
::blink::mojom::CacheKeysResultPtr> { … };
}
#endif