chromium/out/Default/gen/components/services/storage/public/mojom/service_worker_storage_control.mojom.h

// components/services/storage/public/mojom/service_worker_storage_control.mojom.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 COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_STORAGE_CONTROL_MOJOM_H_
#define COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_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/service_worker_storage_control.mojom-features.h"  // IWYU pragma: export
#include "components/services/storage/public/mojom/service_worker_storage_control.mojom-shared.h"  // IWYU pragma: export
#include "components/services/storage/public/mojom/service_worker_storage_control.mojom-forward.h"  // IWYU pragma: export
#include "components/services/storage/public/mojom/service_worker_database.mojom.h"
#include "components/services/storage/public/mojom/storage_policy_update.mojom-forward.h"
#include "mojo/public/mojom/base/big_buffer.mojom.h"
#include "mojo/public/mojom/base/byte_string.mojom.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom-forward.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_type.mojom-forward.h"
#include "third_party/blink/public/mojom/storage_key/storage_key.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"






namespace storage::mojom {

class ServiceWorkerLiveVersionRefProxy;

template <typename ImplRefTraits>
class ServiceWorkerLiveVersionRefStub;

class ServiceWorkerLiveVersionRefRequestValidator;


class ServiceWorkerLiveVersionRef
    : public ServiceWorkerLiveVersionRefInterfaceBase {};

class ServiceWorkerResourceReaderProxy;

template <typename ImplRefTraits>
class ServiceWorkerResourceReaderStub;

class ServiceWorkerResourceReaderRequestValidator;
class ServiceWorkerResourceReaderResponseValidator;


class ServiceWorkerResourceReader
    : public ServiceWorkerResourceReaderInterfaceBase {};

class ServiceWorkerResourceWriterProxy;

template <typename ImplRefTraits>
class ServiceWorkerResourceWriterStub;

class ServiceWorkerResourceWriterRequestValidator;
class ServiceWorkerResourceWriterResponseValidator;


class ServiceWorkerResourceWriter
    : public ServiceWorkerResourceWriterInterfaceBase {};

class ServiceWorkerResourceMetadataWriterProxy;

template <typename ImplRefTraits>
class ServiceWorkerResourceMetadataWriterStub;

class ServiceWorkerResourceMetadataWriterRequestValidator;
class ServiceWorkerResourceMetadataWriterResponseValidator;


class ServiceWorkerResourceMetadataWriter
    : public ServiceWorkerResourceMetadataWriterInterfaceBase {};

class ServiceWorkerStorageControlProxy;

template <typename ImplRefTraits>
class ServiceWorkerStorageControlStub;

class ServiceWorkerStorageControlRequestValidator;
class ServiceWorkerStorageControlResponseValidator;


class ServiceWorkerStorageControl
    : public ServiceWorkerStorageControlInterfaceBase {};



class  ServiceWorkerLiveVersionRefProxy
    : public ServiceWorkerLiveVersionRef {};



class  ServiceWorkerResourceReaderProxy
    : public ServiceWorkerResourceReader {};



class  ServiceWorkerResourceWriterProxy
    : public ServiceWorkerResourceWriter {};



class  ServiceWorkerResourceMetadataWriterProxy
    : public ServiceWorkerResourceMetadataWriter {};



class  ServiceWorkerStorageControlProxy
    : public ServiceWorkerStorageControl {};
class  ServiceWorkerLiveVersionRefStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ServiceWorkerLiveVersionRef>>
class ServiceWorkerLiveVersionRefStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ServiceWorkerLiveVersionRefStub() = default;
  ~ServiceWorkerLiveVersionRefStub() 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  ServiceWorkerResourceReaderStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ServiceWorkerResourceReader>>
class ServiceWorkerResourceReaderStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ServiceWorkerResourceReaderStub() = default;
  ~ServiceWorkerResourceReaderStub() 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  ServiceWorkerResourceWriterStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ServiceWorkerResourceWriter>>
class ServiceWorkerResourceWriterStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ServiceWorkerResourceWriterStub() = default;
  ~ServiceWorkerResourceWriterStub() 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  ServiceWorkerResourceMetadataWriterStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ServiceWorkerResourceMetadataWriter>>
class ServiceWorkerResourceMetadataWriterStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ServiceWorkerResourceMetadataWriterStub() = default;
  ~ServiceWorkerResourceMetadataWriterStub() 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  ServiceWorkerStorageControlStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<ServiceWorkerStorageControl>>
class ServiceWorkerStorageControlStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  ServiceWorkerStorageControlStub() = default;
  ~ServiceWorkerStorageControlStub() 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  ServiceWorkerLiveVersionRefRequestValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceReaderRequestValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceWriterRequestValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceMetadataWriterRequestValidator : public mojo::MessageReceiver {};
class  ServiceWorkerStorageControlRequestValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceReaderResponseValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceWriterResponseValidator : public mojo::MessageReceiver {};
class  ServiceWorkerResourceMetadataWriterResponseValidator : public mojo::MessageReceiver {};
class  ServiceWorkerStorageControlResponseValidator : public mojo::MessageReceiver {};










class  ServiceWorkerLiveVersionInfo {};

// 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, ServiceWorkerLiveVersionInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerLiveVersionInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerLiveVersionInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerLiveVersionInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  ServiceWorkerFindRegistrationResult {};

// 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, ServiceWorkerFindRegistrationResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerFindRegistrationResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerFindRegistrationResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerFindRegistrationResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class  ServiceWorkerUserData {};

// 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, ServiceWorkerUserData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, ServiceWorkerUserData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerUserData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, ServiceWorkerUserData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename StructPtrType>
ServiceWorkerLiveVersionInfoPtr ServiceWorkerLiveVersionInfo::Clone() const {}

template <typename T, ServiceWorkerLiveVersionInfo::EnableIfSame<T>*>
bool ServiceWorkerLiveVersionInfo::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerLiveVersionInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerFindRegistrationResultPtr ServiceWorkerFindRegistrationResult::Clone() const {}

template <typename T, ServiceWorkerFindRegistrationResult::EnableIfSame<T>*>
bool ServiceWorkerFindRegistrationResult::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerFindRegistrationResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
ServiceWorkerUserDataPtr ServiceWorkerUserData::Clone() const {}

template <typename T, ServiceWorkerUserData::EnableIfSame<T>*>
bool ServiceWorkerUserData::Equals(const T& other_struct) const {}

template <typename T, ServiceWorkerUserData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // storage::mojom

namespace mojo {


template <>
struct  StructTraits<::storage::mojom::ServiceWorkerLiveVersionInfo::DataView,
                                         ::storage::mojom::ServiceWorkerLiveVersionInfoPtr> {};


template <>
struct  StructTraits<::storage::mojom::ServiceWorkerFindRegistrationResult::DataView,
                                         ::storage::mojom::ServiceWorkerFindRegistrationResultPtr> {};


template <>
struct  StructTraits<::storage::mojom::ServiceWorkerUserData::DataView,
                                         ::storage::mojom::ServiceWorkerUserDataPtr> {};

}  // namespace mojo

#endif  // COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_STORAGE_CONTROL_MOJOM_H_