#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILE_SYSTEM_ACCESS_FILE_SYSTEM_ACCESS_OBSERVER_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_FILE_SYSTEM_ACCESS_FILE_SYSTEM_ACCESS_OBSERVER_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/file_system_access/file_system_access_observer.mojom-features.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-shared.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.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 "third_party/blink/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class FileSystemAccessObserverProxy;
template <typename ImplRefTraits>
class FileSystemAccessObserverStub;
class FileSystemAccessObserverRequestValidator;
class PLATFORM_EXPORT FileSystemAccessObserver
: public FileSystemAccessObserverInterfaceBase { … };
class PLATFORM_EXPORT FileSystemAccessObserverProxy
: public FileSystemAccessObserver { … };
class PLATFORM_EXPORT FileSystemAccessObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FileSystemAccessObserver>>
class FileSystemAccessObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FileSystemAccessObserverStub() = default;
~FileSystemAccessObserverStub() 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 FileSystemAccessObserverRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT FileSystemAccessChangeTypeAppeared { … };
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeTypeDisappeared { … };
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeTypeErrored { … };
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeTypeModified { … };
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeTypeUnknown { … };
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeType { … };
class PLATFORM_EXPORT FileSystemAccessChangeTypeMoved { … };
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChangeMetadata { … };
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT FileSystemAccessChange { … };
template <typename T, FileSystemAccessChange::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FileSystemAccessChange::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChange::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FileSystemAccessChange::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
FileSystemAccessChangeTypePtr FileSystemAccessChangeType::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, FileSystemAccessChangeType>::value>::type*>
bool FileSystemAccessChangeType::Equals(const T& other) const { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeAppearedPtr FileSystemAccessChangeTypeAppeared::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeAppeared::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeAppeared::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeDisappearedPtr FileSystemAccessChangeTypeDisappeared::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeDisappeared::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeDisappeared::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeErroredPtr FileSystemAccessChangeTypeErrored::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeErrored::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeErrored::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeModifiedPtr FileSystemAccessChangeTypeModified::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeModified::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeModified::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeMovedPtr FileSystemAccessChangeTypeMoved::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeMoved::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeMoved::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeTypeUnknownPtr FileSystemAccessChangeTypeUnknown::Clone() const { … }
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>*>
bool FileSystemAccessChangeTypeUnknown::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeTypeUnknown::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangeMetadataPtr FileSystemAccessChangeMetadata::Clone() const { … }
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>*>
bool FileSystemAccessChangeMetadata::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChangeMetadata::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FileSystemAccessChangePtr FileSystemAccessChange::Clone() const { … }
template <typename T, FileSystemAccessChange::EnableIfSame<T>*>
bool FileSystemAccessChange::Equals(const T& other_struct) const { … }
template <typename T, FileSystemAccessChange::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeAppeared::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeAppearedPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeDisappeared::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeDisappearedPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeErrored::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeErroredPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeModified::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeModifiedPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeMoved::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeMovedPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeUnknown::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypeUnknownPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChangeMetadata::DataView,
::blink::mojom::blink::FileSystemAccessChangeMetadataPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::FileSystemAccessChange::DataView,
::blink::mojom::blink::FileSystemAccessChangePtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::FileSystemAccessChangeType::DataView,
::blink::mojom::blink::FileSystemAccessChangeTypePtr> { … };
}
#endif