chromium/out/Default/gen/third_party/blink/public/mojom/cache_storage/cache_storage.mojom-blink.h

// third_party/blink/public/mojom/cache_storage/cache_storage.mojom-blink.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_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/cache_storage/cache_storage.mojom-features.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-shared.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-blink-forward.h"  // IWYU pragma: export
#include "mojo/public/mojom/base/big_buffer.mojom-blink.h"
#include "mojo/public/mojom/base/read_only_buffer.mojom-blink-forward.h"
#include "mojo/public/mojom/base/string16.mojom-blink.h"
#include "mojo/public/mojom/base/time.mojom-blink.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_response.mojom-blink.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/renderer/platform/platform_export.h"




namespace blink::mojom::blink {

class CacheStorageCacheProxy;

template <typename ImplRefTraits>
class CacheStorageCacheStub;

class CacheStorageCacheRequestValidator;
class CacheStorageCacheResponseValidator;


class PLATFORM_EXPORT CacheStorageCache
    : public CacheStorageCacheInterfaceBase {};

class CacheStorageProxy;

template <typename ImplRefTraits>
class CacheStorageStub;

class CacheStorageRequestValidator;
class CacheStorageResponseValidator;


class PLATFORM_EXPORT CacheStorage
    : public CacheStorageInterfaceBase {};



class PLATFORM_EXPORT CacheStorageCacheProxy
    : public CacheStorageCache {};



class PLATFORM_EXPORT CacheStorageProxy
    : public CacheStorage {};
class PLATFORM_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 PLATFORM_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 PLATFORM_EXPORT CacheStorageCacheRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT CacheStorageRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT CacheStorageCacheResponseValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT CacheStorageResponseValidator : public mojo::MessageReceiver {};





class PLATFORM_EXPORT CacheStorageVerboseError {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT CacheQueryOptions {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT OpenResult {};



class PLATFORM_EXPORT MatchResult {};



class PLATFORM_EXPORT MatchAllResult {};



class PLATFORM_EXPORT GetAllMatchedEntriesResult {};



class PLATFORM_EXPORT CacheKeysResult {};







class PLATFORM_EXPORT MultiCacheQueryOptions {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT BatchOperation {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT EagerResponse {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT CacheEntry {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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) {}


}  // blink::mojom::blink

namespace mojo {


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::CacheStorageVerboseError::DataView,
                                         ::blink::mojom::blink::CacheStorageVerboseErrorPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::CacheQueryOptions::DataView,
                                         ::blink::mojom::blink::CacheQueryOptionsPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::MultiCacheQueryOptions::DataView,
                                         ::blink::mojom::blink::MultiCacheQueryOptionsPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::BatchOperation::DataView,
                                         ::blink::mojom::blink::BatchOperationPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::EagerResponse::DataView,
                                         ::blink::mojom::blink::EagerResponsePtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::CacheEntry::DataView,
                                         ::blink::mojom::blink::CacheEntryPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::OpenResult::DataView,
                                        ::blink::mojom::blink::OpenResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::MatchResult::DataView,
                                        ::blink::mojom::blink::MatchResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::MatchAllResult::DataView,
                                        ::blink::mojom::blink::MatchAllResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::GetAllMatchedEntriesResult::DataView,
                                        ::blink::mojom::blink::GetAllMatchedEntriesResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::CacheKeysResult::DataView,
                                        ::blink::mojom::blink::CacheKeysResultPtr> {};

}  // namespace mojo

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_BLINK_H_