#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-blink.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-params-data.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_observer.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
FileSystemAccessChangeTypeAppeared::FileSystemAccessChangeTypeAppeared() { … }
FileSystemAccessChangeTypeAppeared::~FileSystemAccessChangeTypeAppeared() = default;
size_t FileSystemAccessChangeTypeAppeared::Hash(size_t seed) const { … }
void FileSystemAccessChangeTypeAppeared::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeAppeared::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeTypeDisappeared::FileSystemAccessChangeTypeDisappeared() { … }
FileSystemAccessChangeTypeDisappeared::~FileSystemAccessChangeTypeDisappeared() = default;
size_t FileSystemAccessChangeTypeDisappeared::Hash(size_t seed) const { … }
void FileSystemAccessChangeTypeDisappeared::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeDisappeared::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeTypeErrored::FileSystemAccessChangeTypeErrored() { … }
FileSystemAccessChangeTypeErrored::~FileSystemAccessChangeTypeErrored() = default;
size_t FileSystemAccessChangeTypeErrored::Hash(size_t seed) const { … }
void FileSystemAccessChangeTypeErrored::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeErrored::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeTypeModified::FileSystemAccessChangeTypeModified() { … }
FileSystemAccessChangeTypeModified::~FileSystemAccessChangeTypeModified() = default;
size_t FileSystemAccessChangeTypeModified::Hash(size_t seed) const { … }
void FileSystemAccessChangeTypeModified::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeModified::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeTypeMoved::FileSystemAccessChangeTypeMoved()
: … { … }
FileSystemAccessChangeTypeMoved::FileSystemAccessChangeTypeMoved(
std::optional<WTF::Vector<WTF::String>> former_relative_path_in)
: … { … }
FileSystemAccessChangeTypeMoved::~FileSystemAccessChangeTypeMoved() = default;
void FileSystemAccessChangeTypeMoved::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeMoved::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeTypeUnknown::FileSystemAccessChangeTypeUnknown() { … }
FileSystemAccessChangeTypeUnknown::~FileSystemAccessChangeTypeUnknown() = default;
size_t FileSystemAccessChangeTypeUnknown::Hash(size_t seed) const { … }
void FileSystemAccessChangeTypeUnknown::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeTypeUnknown::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeMetadata::FileSystemAccessChangeMetadata()
: … { … }
FileSystemAccessChangeMetadata::FileSystemAccessChangeMetadata(
::blink::mojom::blink::FileSystemAccessEntryPtr root_in,
::blink::mojom::blink::FileSystemAccessEntryPtr changed_entry_in,
WTF::Vector<WTF::String> relative_path_in)
: … { … }
FileSystemAccessChangeMetadata::~FileSystemAccessChangeMetadata() = default;
void FileSystemAccessChangeMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChangeMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChange::FileSystemAccessChange()
: … { … }
FileSystemAccessChange::FileSystemAccessChange(
FileSystemAccessChangeMetadataPtr metadata_in,
FileSystemAccessChangeTypePtr type_in)
: … { … }
FileSystemAccessChange::~FileSystemAccessChange() = default;
void FileSystemAccessChange::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemAccessChange::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FileSystemAccessChangeType::FileSystemAccessChangeType() : … { … }
FileSystemAccessChangeType::~FileSystemAccessChangeType() { … }
void FileSystemAccessChangeType::set_appeared(
FileSystemAccessChangeTypeAppearedPtr appeared) { … }
void FileSystemAccessChangeType::set_disappeared(
FileSystemAccessChangeTypeDisappearedPtr disappeared) { … }
void FileSystemAccessChangeType::set_errored(
FileSystemAccessChangeTypeErroredPtr errored) { … }
void FileSystemAccessChangeType::set_modified(
FileSystemAccessChangeTypeModifiedPtr modified) { … }
void FileSystemAccessChangeType::set_moved(
FileSystemAccessChangeTypeMovedPtr moved) { … }
void FileSystemAccessChangeType::set_unknown(
FileSystemAccessChangeTypeUnknownPtr unknown) { … }
void FileSystemAccessChangeType::DestroyActive() { … }
bool FileSystemAccessChangeType::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char FileSystemAccessObserver::Name_[] = …;
FileSystemAccessObserver::IPCStableHashFunction FileSystemAccessObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FileSystemAccessObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemAccessObserver::OnFileChanges_Sym::IPCStableHash() { … }
# endif
FileSystemAccessObserverProxy::FileSystemAccessObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FileSystemAccessObserverProxy::OnFileChanges(
WTF::Vector<FileSystemAccessChangePtr> in_changes) { … }
bool FileSystemAccessObserverStubDispatch::Accept(
FileSystemAccessObserver* impl,
mojo::Message* message) { … }
bool FileSystemAccessObserverStubDispatch::AcceptWithResponder(
FileSystemAccessObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFileSystemAccessObserverValidationInfo[] = …;
bool FileSystemAccessObserverRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeAppeared::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeAppearedPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeAppeared::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeAppearedPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeDisappeared::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeDisappearedPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeDisappeared::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeDisappearedPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeErrored::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeErroredPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeErrored::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeErroredPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeModified::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeModifiedPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeModified::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeModifiedPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeMoved::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeMovedPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeMoved::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeMovedPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeTypeUnknown::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypeUnknownPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeTypeUnknown::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypeUnknownPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChangeMetadata::DataView, ::blink::mojom::blink::FileSystemAccessChangeMetadataPtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeMetadata::DataView input,
::blink::mojom::blink::FileSystemAccessChangeMetadataPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FileSystemAccessChange::DataView, ::blink::mojom::blink::FileSystemAccessChangePtr>::Read(
::blink::mojom::blink::FileSystemAccessChange::DataView input,
::blink::mojom::blink::FileSystemAccessChangePtr* output) { … }
bool UnionTraits<::blink::mojom::blink::FileSystemAccessChangeType::DataView, ::blink::mojom::blink::FileSystemAccessChangeTypePtr>::Read(
::blink::mojom::blink::FileSystemAccessChangeType::DataView input,
::blink::mojom::blink::FileSystemAccessChangeTypePtr* output) { … }
}
namespace blink::mojom::blink {
void FileSystemAccessObserverInterceptorForTesting::OnFileChanges(WTF::Vector<FileSystemAccessChangePtr> changes) { … }
FileSystemAccessObserverAsyncWaiter::FileSystemAccessObserverAsyncWaiter(
FileSystemAccessObserver* proxy) : … { … }
FileSystemAccessObserverAsyncWaiter::~FileSystemAccessObserverAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif