#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILESYSTEM_FILE_SYSTEM_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILESYSTEM_FILE_SYSTEM_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/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-blink-forward.h"
#include "components/services/filesystem/public/mojom/types.mojom-blink-forward.h"
#include "url/mojom/origin.mojom-blink.h"
#include "url/mojom/url.mojom-blink.h"
#include "mojo/public/mojom/base/file_error.mojom-blink.h"
#include "mojo/public/mojom/base/file_path.mojom-blink.h"
#include "mojo/public/mojom/base/file_info.mojom-blink.h"
#include "mojo/public/mojom/base/time.mojom-blink.h"
#include "third_party/blink/public/mojom/blob/serialized_blob.mojom-blink.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-blink-forward.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 "third_party/blink/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class FileSystemCancellableOperationProxy;
template <typename ImplRefTraits>
class FileSystemCancellableOperationStub;
class FileSystemCancellableOperationRequestValidator;
class FileSystemCancellableOperationResponseValidator;
class PLATFORM_EXPORT FileSystemCancellableOperation
: public FileSystemCancellableOperationInterfaceBase { … };
class FileSystemOperationListenerProxy;
template <typename ImplRefTraits>
class FileSystemOperationListenerStub;
class FileSystemOperationListenerRequestValidator;
class PLATFORM_EXPORT FileSystemOperationListener
: public FileSystemOperationListenerInterfaceBase { … };
class ReceivedSnapshotListenerProxy;
template <typename ImplRefTraits>
class ReceivedSnapshotListenerStub;
class ReceivedSnapshotListenerRequestValidator;
class PLATFORM_EXPORT ReceivedSnapshotListener
: public ReceivedSnapshotListenerInterfaceBase { … };
class FileSystemManagerProxy;
template <typename ImplRefTraits>
class FileSystemManagerStub;
class FileSystemManagerRequestValidator;
class FileSystemManagerResponseValidator;
class PLATFORM_EXPORT FileSystemManager
: public FileSystemManagerInterfaceBase { … };
class PLATFORM_EXPORT FileSystemCancellableOperationProxy
: public FileSystemCancellableOperation { … };
class PLATFORM_EXPORT FileSystemOperationListenerProxy
: public FileSystemOperationListener { … };
class PLATFORM_EXPORT ReceivedSnapshotListenerProxy
: public ReceivedSnapshotListener { … };
class PLATFORM_EXPORT FileSystemManagerProxy
: public FileSystemManager { … };
class PLATFORM_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 PLATFORM_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 PLATFORM_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 PLATFORM_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 PLATFORM_EXPORT FileSystemCancellableOperationRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT FileSystemOperationListenerRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT ReceivedSnapshotListenerRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT FileSystemManagerRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT FileSystemCancellableOperationResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT FileSystemManagerResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_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 PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemInfo::DataView,
::blink::mojom::blink::FileSystemInfoPtr> { … };
}
#endif