#ifndef COMPONENTS_SERVICES_UNZIP_PUBLIC_MOJOM_UNZIPPER_MOJOM_H_
#define COMPONENTS_SERVICES_UNZIP_PUBLIC_MOJOM_UNZIPPER_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/unzip/public/mojom/unzipper.mojom-features.h"
#include "components/services/unzip/public/mojom/unzipper.mojom-shared.h"
#include "components/services/unzip/public/mojom/unzipper.mojom-forward.h"
#include "components/services/storage/public/mojom/filesystem/directory.mojom-forward.h"
#include "mojo/public/mojom/base/file_path.mojom.h"
#include "mojo/public/mojom/base/read_only_file.mojom.h"
#include "sandbox/policy/mojom/sandbox.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 unzip::mojom {
class UnzipFilterProxy;
template <typename ImplRefTraits>
class UnzipFilterStub;
class UnzipFilterRequestValidator;
class UnzipFilterResponseValidator;
class UnzipFilter
: public UnzipFilterInterfaceBase { … };
class UnzipListenerProxy;
template <typename ImplRefTraits>
class UnzipListenerStub;
class UnzipListenerRequestValidator;
class UnzipListener
: public UnzipListenerInterfaceBase { … };
class UnzipperProxy;
template <typename ImplRefTraits>
class UnzipperStub;
class UnzipperRequestValidator;
class UnzipperResponseValidator;
class Unzipper
: public UnzipperInterfaceBase { … };
class UnzipFilterProxy
: public UnzipFilter { … };
class UnzipListenerProxy
: public UnzipListener { … };
class UnzipperProxy
: public Unzipper { … };
class UnzipFilterStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UnzipFilter>>
class UnzipFilterStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UnzipFilterStub() = default;
~UnzipFilterStub() 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 UnzipListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UnzipListener>>
class UnzipListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UnzipListenerStub() = default;
~UnzipListenerStub() 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 UnzipperStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<Unzipper>>
class UnzipperStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UnzipperStub() = default;
~UnzipperStub() 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 UnzipFilterRequestValidator : public mojo::MessageReceiver { … };
class UnzipListenerRequestValidator : public mojo::MessageReceiver { … };
class UnzipperRequestValidator : public mojo::MessageReceiver { … };
class UnzipFilterResponseValidator : public mojo::MessageReceiver { … };
class UnzipperResponseValidator : public mojo::MessageReceiver { … };
class UnzipOptions { … };
template <typename T, UnzipOptions::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UnzipOptions::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UnzipOptions::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UnzipOptions::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Info { … };
template <typename T, Info::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Info::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Info::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Info::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UnzipOptionsPtr UnzipOptions::Clone() const { … }
template <typename T, UnzipOptions::EnableIfSame<T>*>
bool UnzipOptions::Equals(const T& other_struct) const { … }
template <typename T, UnzipOptions::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
InfoPtr Info::Clone() const { … }
template <typename T, Info::EnableIfSame<T>*>
bool Info::Equals(const T& other_struct) const { … }
template <typename T, Info::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::unzip::mojom::UnzipOptions::DataView,
::unzip::mojom::UnzipOptionsPtr> { … };
template <>
struct StructTraits<::unzip::mojom::Info::DataView,
::unzip::mojom::InfoPtr> { … };
}
#endif