#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILESYSTEM_FILE_SYSTEM_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILESYSTEM_FILE_SYSTEM_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/filesystem/file_system.mojom-features.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-shared.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-forward.h"
#include "components/services/filesystem/public/mojom/types.mojom-forward.h"
#include "url/mojom/origin.mojom.h"
#include "url/mojom/url.mojom.h"
#include "mojo/public/mojom/base/file_error.mojom.h"
#include "mojo/public/mojom/base/file_path.mojom.h"
#include "mojo/public/mojom/base/file_info.mojom.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "third_party/blink/public/mojom/blob/serialized_blob.mojom-forward.h"
#include "third_party/blink/public/mojom/blob/blob.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"
#include "third_party/blink/public/common/common_export.h"
namespace blink::mojom {
class FileSystemCancellableOperationProxy;
template <typename ImplRefTraits>
class FileSystemCancellableOperationStub;
class FileSystemCancellableOperationRequestValidator;
class FileSystemCancellableOperationResponseValidator;
class BLINK_COMMON_EXPORT FileSystemCancellableOperation
: public FileSystemCancellableOperationInterfaceBase { … };
class FileSystemOperationListenerProxy;
template <typename ImplRefTraits>
class FileSystemOperationListenerStub;
class FileSystemOperationListenerRequestValidator;
class BLINK_COMMON_EXPORT FileSystemOperationListener
: public FileSystemOperationListenerInterfaceBase { … };
class ReceivedSnapshotListenerProxy;
template <typename ImplRefTraits>
class ReceivedSnapshotListenerStub;
class ReceivedSnapshotListenerRequestValidator;
class BLINK_COMMON_EXPORT ReceivedSnapshotListener
: public ReceivedSnapshotListenerInterfaceBase { … };
class FileSystemManagerProxy;
template <typename ImplRefTraits>
class FileSystemManagerStub;
class FileSystemManagerRequestValidator;
class FileSystemManagerResponseValidator;
class BLINK_COMMON_EXPORT FileSystemManager
: public FileSystemManagerInterfaceBase { … };
class BLINK_COMMON_EXPORT FileSystemCancellableOperationProxy
: public FileSystemCancellableOperation { … };
class BLINK_COMMON_EXPORT FileSystemOperationListenerProxy
: public FileSystemOperationListener { … };
class BLINK_COMMON_EXPORT ReceivedSnapshotListenerProxy
: public ReceivedSnapshotListener { … };
class BLINK_COMMON_EXPORT FileSystemManagerProxy
: public FileSystemManager { … };
class BLINK_COMMON_EXPORT FileSystemCancellableOperationStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FileSystemCancellableOperation>>
class FileSystemCancellableOperationStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FileSystemCancellableOperationStub() = default;
~FileSystemCancellableOperationStub() 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 FileSystemOperationListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FileSystemOperationListener>>
class FileSystemOperationListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FileSystemOperationListenerStub() = default;
~FileSystemOperationListenerStub() 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 ReceivedSnapshotListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ReceivedSnapshotListener>>
class ReceivedSnapshotListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ReceivedSnapshotListenerStub() = default;
~ReceivedSnapshotListenerStub() 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 FileSystemManagerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FileSystemManager>>
class FileSystemManagerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FileSystemManagerStub() = default;
~FileSystemManagerStub() 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 FileSystemCancellableOperationRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FileSystemOperationListenerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT ReceivedSnapshotListenerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FileSystemManagerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FileSystemCancellableOperationResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FileSystemManagerResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FileSystemInfo { … };
template <typename T, FileSystemInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemInfoPtr FileSystemInfo::Clone() const { … }
template <typename T, FileSystemInfo::EnableIfSame<T>*>
bool FileSystemInfo::Equals(const T& other_struct) const { … }
template <typename T, FileSystemInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::FileSystemInfo::DataView,
::blink::mojom::FileSystemInfoPtr> { … };
}
#endif