chromium/out/Default/gen/third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.mojom.cc

// third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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_directory_handle.mojom.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_directory_handle.mojom-params-data.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.mojom-import-headers.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_directory_handle.mojom-test-utils.h"


namespace blink::mojom {
FileSystemAccessEntry::FileSystemAccessEntry()
    :{}

FileSystemAccessEntry::FileSystemAccessEntry(
    FileSystemAccessHandlePtr entry_handle_in,
    const std::string& name_in)
    :{}

FileSystemAccessEntry::~FileSystemAccessEntry() = default;

void FileSystemAccessEntry::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool FileSystemAccessEntry::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
FileSystemAccessHandle::FileSystemAccessHandle() :{}

FileSystemAccessHandle::~FileSystemAccessHandle() {}


void FileSystemAccessHandle::set_file(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessFileHandle> file) {}
void FileSystemAccessHandle::set_directory(
    ::mojo::PendingRemote<FileSystemAccessDirectoryHandle> directory) {}

void FileSystemAccessHandle::DestroyActive() {}

bool FileSystemAccessHandle::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char FileSystemAccessDirectoryEntriesListener::Name_[] =;

FileSystemAccessDirectoryEntriesListener::IPCStableHashFunction FileSystemAccessDirectoryEntriesListener::MessageToMethodInfo_(mojo::Message& message) {}


const char* FileSystemAccessDirectoryEntriesListener::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemAccessDirectoryEntriesListener::DidReadDirectory_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

FileSystemAccessDirectoryEntriesListenerProxy::FileSystemAccessDirectoryEntriesListenerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void FileSystemAccessDirectoryEntriesListenerProxy::DidReadDirectory(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, std::vector<FileSystemAccessEntryPtr> in_entries, bool in_has_more_entries) {}

// static
bool FileSystemAccessDirectoryEntriesListenerStubDispatch::Accept(
    FileSystemAccessDirectoryEntriesListener* impl,
    mojo::Message* message) {}

// static
bool FileSystemAccessDirectoryEntriesListenerStubDispatch::AcceptWithResponder(
    FileSystemAccessDirectoryEntriesListener* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kFileSystemAccessDirectoryEntriesListenerValidationInfo[] =;

bool FileSystemAccessDirectoryEntriesListenerRequestValidator::Accept(mojo::Message* message) {}

const char FileSystemAccessDirectoryHandle::Name_[] =;

FileSystemAccessDirectoryHandle::IPCStableHashFunction FileSystemAccessDirectoryHandle::MessageToMethodInfo_(mojo::Message& message) {}


const char* FileSystemAccessDirectoryHandle::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemAccessDirectoryHandle::GetPermissionStatus_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::RequestPermission_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::GetFile_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::GetDirectory_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::GetEntries_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::Rename_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::Move_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::Remove_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::RemoveEntry_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::Resolve_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::Transfer_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::GetUniqueId_Sym::IPCStableHash() {}
uint32_t FileSystemAccessDirectoryHandle::GetCloudIdentifiers_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class FileSystemAccessDirectoryHandle_GetPermissionStatus_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_RequestPermission_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_GetFile_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_GetDirectory_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_Rename_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_Move_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_Remove_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_RemoveEntry_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_Resolve_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_GetUniqueId_ForwardToCallback
    : public mojo::MessageReceiver {};

class FileSystemAccessDirectoryHandle_GetCloudIdentifiers_ForwardToCallback
    : public mojo::MessageReceiver {};

FileSystemAccessDirectoryHandleProxy::FileSystemAccessDirectoryHandleProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void FileSystemAccessDirectoryHandleProxy::GetPermissionStatus(
    bool in_writable, GetPermissionStatusCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::RequestPermission(
    bool in_writable, RequestPermissionCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::GetFile(
    const std::string& in_basename, bool in_create, GetFileCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::GetDirectory(
    const std::string& in_basename, bool in_create, GetDirectoryCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::GetEntries(
    ::mojo::PendingRemote<FileSystemAccessDirectoryEntriesListener> in_listener) {}

void FileSystemAccessDirectoryHandleProxy::Rename(
    const std::string& in_new_entry_name, RenameCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::Move(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> in_destination_directory, const std::string& in_new_entry_name, MoveCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::Remove(
    bool in_recurse, RemoveCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::RemoveEntry(
    const std::string& in_basename, bool in_recurse, RemoveEntryCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::Resolve(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> in_possible_child, ResolveCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::Transfer(
    ::mojo::PendingReceiver<::blink::mojom::FileSystemAccessTransferToken> in_token) {}

void FileSystemAccessDirectoryHandleProxy::GetUniqueId(
    GetUniqueIdCallback callback) {}

void FileSystemAccessDirectoryHandleProxy::GetCloudIdentifiers(
    GetCloudIdentifiersCallback callback) {}
class FileSystemAccessDirectoryHandle_GetPermissionStatus_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_GetPermissionStatus_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_GetPermissionStatus_ProxyToResponder::Run(
    ::blink::mojom::PermissionStatus in_status) {}
class FileSystemAccessDirectoryHandle_RequestPermission_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_RequestPermission_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_RequestPermission_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, ::blink::mojom::PermissionStatus in_status) {}
class FileSystemAccessDirectoryHandle_GetFile_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_GetFile_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_GetFile_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, ::mojo::PendingRemote<::blink::mojom::FileSystemAccessFileHandle> in_file) {}
class FileSystemAccessDirectoryHandle_GetDirectory_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_GetDirectory_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_GetDirectory_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, ::mojo::PendingRemote<FileSystemAccessDirectoryHandle> in_directory) {}
class FileSystemAccessDirectoryHandle_Rename_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_Rename_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_Rename_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result) {}
class FileSystemAccessDirectoryHandle_Move_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_Move_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_Move_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result) {}
class FileSystemAccessDirectoryHandle_Remove_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_Remove_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_Remove_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result) {}
class FileSystemAccessDirectoryHandle_RemoveEntry_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_RemoveEntry_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_RemoveEntry_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result) {}
class FileSystemAccessDirectoryHandle_Resolve_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_Resolve_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_Resolve_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, const std::optional<std::vector<std::string>>& in_path) {}
class FileSystemAccessDirectoryHandle_GetUniqueId_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_GetUniqueId_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_GetUniqueId_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, const std::string& in_id) {}
class FileSystemAccessDirectoryHandle_GetCloudIdentifiers_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool FileSystemAccessDirectoryHandle_GetCloudIdentifiers_ForwardToCallback::Accept(
    mojo::Message* message) {}

void FileSystemAccessDirectoryHandle_GetCloudIdentifiers_ProxyToResponder::Run(
    ::blink::mojom::FileSystemAccessErrorPtr in_result, std::vector<::blink::mojom::FileSystemAccessCloudIdentifierPtr> in_cloud_identifiers) {}

// static
bool FileSystemAccessDirectoryHandleStubDispatch::Accept(
    FileSystemAccessDirectoryHandle* impl,
    mojo::Message* message) {}

// static
bool FileSystemAccessDirectoryHandleStubDispatch::AcceptWithResponder(
    FileSystemAccessDirectoryHandle* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kFileSystemAccessDirectoryHandleValidationInfo[] =;

bool FileSystemAccessDirectoryHandleRequestValidator::Accept(mojo::Message* message) {}

bool FileSystemAccessDirectoryHandleResponseValidator::Accept(mojo::Message* message) {}


}  // blink::mojom


namespace mojo {


// static
bool StructTraits<::blink::mojom::FileSystemAccessEntry::DataView, ::blink::mojom::FileSystemAccessEntryPtr>::Read(
    ::blink::mojom::FileSystemAccessEntry::DataView input,
    ::blink::mojom::FileSystemAccessEntryPtr* output) {}

// static
bool UnionTraits<::blink::mojom::FileSystemAccessHandle::DataView, ::blink::mojom::FileSystemAccessHandlePtr>::Read(
    ::blink::mojom::FileSystemAccessHandle::DataView input,
    ::blink::mojom::FileSystemAccessHandlePtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace blink::mojom {


void FileSystemAccessDirectoryEntriesListenerInterceptorForTesting::DidReadDirectory(::blink::mojom::FileSystemAccessErrorPtr result, std::vector<FileSystemAccessEntryPtr> entries, bool has_more_entries) {}
FileSystemAccessDirectoryEntriesListenerAsyncWaiter::FileSystemAccessDirectoryEntriesListenerAsyncWaiter(
    FileSystemAccessDirectoryEntriesListener* proxy) :{}

FileSystemAccessDirectoryEntriesListenerAsyncWaiter::~FileSystemAccessDirectoryEntriesListenerAsyncWaiter() = default;




void FileSystemAccessDirectoryHandleInterceptorForTesting::GetPermissionStatus(bool writable, GetPermissionStatusCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::RequestPermission(bool writable, RequestPermissionCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::GetFile(const std::string& basename, bool create, GetFileCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::GetDirectory(const std::string& basename, bool create, GetDirectoryCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::GetEntries(::mojo::PendingRemote<FileSystemAccessDirectoryEntriesListener> listener) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::Rename(const std::string& new_entry_name, RenameCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::Move(::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> destination_directory, const std::string& new_entry_name, MoveCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::Remove(bool recurse, RemoveCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::RemoveEntry(const std::string& basename, bool recurse, RemoveEntryCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::Resolve(::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> possible_child, ResolveCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::Transfer(::mojo::PendingReceiver<::blink::mojom::FileSystemAccessTransferToken> token) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::GetUniqueId(GetUniqueIdCallback callback) {}
void FileSystemAccessDirectoryHandleInterceptorForTesting::GetCloudIdentifiers(GetCloudIdentifiersCallback callback) {}
FileSystemAccessDirectoryHandleAsyncWaiter::FileSystemAccessDirectoryHandleAsyncWaiter(
    FileSystemAccessDirectoryHandle* proxy) :{}

FileSystemAccessDirectoryHandleAsyncWaiter::~FileSystemAccessDirectoryHandleAsyncWaiter() = default;

void FileSystemAccessDirectoryHandleAsyncWaiter::GetPermissionStatus(
    bool writable, ::blink::mojom::PermissionStatus* out_status) {}

::blink::mojom::PermissionStatus FileSystemAccessDirectoryHandleAsyncWaiter::GetPermissionStatus(
    bool writable) {}

void FileSystemAccessDirectoryHandleAsyncWaiter::RequestPermission(
    bool writable, ::blink::mojom::FileSystemAccessErrorPtr* out_result, ::blink::mojom::PermissionStatus* out_status) {}



void FileSystemAccessDirectoryHandleAsyncWaiter::GetFile(
    const std::string& basename, bool create, ::blink::mojom::FileSystemAccessErrorPtr* out_result, ::mojo::PendingRemote<::blink::mojom::FileSystemAccessFileHandle>* out_file) {}



void FileSystemAccessDirectoryHandleAsyncWaiter::GetDirectory(
    const std::string& basename, bool create, ::blink::mojom::FileSystemAccessErrorPtr* out_result, ::mojo::PendingRemote<FileSystemAccessDirectoryHandle>* out_directory) {}



void FileSystemAccessDirectoryHandleAsyncWaiter::Rename(
    const std::string& new_entry_name, ::blink::mojom::FileSystemAccessErrorPtr* out_result) {}

::blink::mojom::FileSystemAccessErrorPtr FileSystemAccessDirectoryHandleAsyncWaiter::Rename(
    const std::string& new_entry_name) {}

void FileSystemAccessDirectoryHandleAsyncWaiter::Move(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> destination_directory, const std::string& new_entry_name, ::blink::mojom::FileSystemAccessErrorPtr* out_result) {}

::blink::mojom::FileSystemAccessErrorPtr FileSystemAccessDirectoryHandleAsyncWaiter::Move(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> destination_directory, const std::string& new_entry_name) {}

void FileSystemAccessDirectoryHandleAsyncWaiter::Remove(
    bool recurse, ::blink::mojom::FileSystemAccessErrorPtr* out_result) {}

::blink::mojom::FileSystemAccessErrorPtr FileSystemAccessDirectoryHandleAsyncWaiter::Remove(
    bool recurse) {}

void FileSystemAccessDirectoryHandleAsyncWaiter::RemoveEntry(
    const std::string& basename, bool recurse, ::blink::mojom::FileSystemAccessErrorPtr* out_result) {}

::blink::mojom::FileSystemAccessErrorPtr FileSystemAccessDirectoryHandleAsyncWaiter::RemoveEntry(
    const std::string& basename, bool recurse) {}

void FileSystemAccessDirectoryHandleAsyncWaiter::Resolve(
    ::mojo::PendingRemote<::blink::mojom::FileSystemAccessTransferToken> possible_child, ::blink::mojom::FileSystemAccessErrorPtr* out_result, std::optional<std::vector<std::string>>* out_path) {}



void FileSystemAccessDirectoryHandleAsyncWaiter::GetUniqueId(
    ::blink::mojom::FileSystemAccessErrorPtr* out_result, std::string* out_id) {}



void FileSystemAccessDirectoryHandleAsyncWaiter::GetCloudIdentifiers(
    ::blink::mojom::FileSystemAccessErrorPtr* out_result, std::vector<::blink::mojom::FileSystemAccessCloudIdentifierPtr>* out_cloud_identifiers) {}








}  // blink::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif