#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/filesystem/file_system.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/filesystem/file_system.mojom-params-data.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
FileSystemInfo::FileSystemInfo()
: … { … }
FileSystemInfo::FileSystemInfo(
const WTF::String& name_in,
const ::blink::KURL& root_url_in,
FileSystemType mount_type_in)
: … { … }
FileSystemInfo::~FileSystemInfo() = default;
void FileSystemInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FileSystemInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char FileSystemCancellableOperation::Name_[] = …;
FileSystemCancellableOperation::IPCStableHashFunction FileSystemCancellableOperation::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FileSystemCancellableOperation::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemCancellableOperation::Cancel_Sym::IPCStableHash() { … }
# endif
class FileSystemCancellableOperation_Cancel_ForwardToCallback
: public mojo::MessageReceiver { … };
FileSystemCancellableOperationProxy::FileSystemCancellableOperationProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FileSystemCancellableOperationProxy::Cancel(
CancelCallback callback) { … }
class FileSystemCancellableOperation_Cancel_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemCancellableOperation_Cancel_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemCancellableOperation_Cancel_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemCancellableOperationStubDispatch::Accept(
FileSystemCancellableOperation* impl,
mojo::Message* message) { … }
bool FileSystemCancellableOperationStubDispatch::AcceptWithResponder(
FileSystemCancellableOperation* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFileSystemCancellableOperationValidationInfo[] = …;
bool FileSystemCancellableOperationRequestValidator::Accept(mojo::Message* message) { … }
bool FileSystemCancellableOperationResponseValidator::Accept(mojo::Message* message) { … }
const char FileSystemOperationListener::Name_[] = …;
FileSystemOperationListener::IPCStableHashFunction FileSystemOperationListener::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FileSystemOperationListener::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemOperationListener::ResultsRetrieved_Sym::IPCStableHash() { … }
uint32_t FileSystemOperationListener::DidWrite_Sym::IPCStableHash() { … }
uint32_t FileSystemOperationListener::ErrorOccurred_Sym::IPCStableHash() { … }
# endif
FileSystemOperationListenerProxy::FileSystemOperationListenerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FileSystemOperationListenerProxy::ResultsRetrieved(
WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr> in_entries, bool in_has_more) { … }
void FileSystemOperationListenerProxy::DidWrite(
int64_t in_byte_count, bool in_complete) { … }
void FileSystemOperationListenerProxy::ErrorOccurred(
::base::File::Error in_error_code) { … }
bool FileSystemOperationListenerStubDispatch::Accept(
FileSystemOperationListener* impl,
mojo::Message* message) { … }
bool FileSystemOperationListenerStubDispatch::AcceptWithResponder(
FileSystemOperationListener* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFileSystemOperationListenerValidationInfo[] = …;
bool FileSystemOperationListenerRequestValidator::Accept(mojo::Message* message) { … }
const char ReceivedSnapshotListener::Name_[] = …;
ReceivedSnapshotListener::IPCStableHashFunction ReceivedSnapshotListener::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ReceivedSnapshotListener::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ReceivedSnapshotListener::DidReceiveSnapshotFile_Sym::IPCStableHash() { … }
# endif
ReceivedSnapshotListenerProxy::ReceivedSnapshotListenerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ReceivedSnapshotListenerProxy::DidReceiveSnapshotFile(
) { … }
bool ReceivedSnapshotListenerStubDispatch::Accept(
ReceivedSnapshotListener* impl,
mojo::Message* message) { … }
bool ReceivedSnapshotListenerStubDispatch::AcceptWithResponder(
ReceivedSnapshotListener* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kReceivedSnapshotListenerValidationInfo[] = …;
bool ReceivedSnapshotListenerRequestValidator::Accept(mojo::Message* message) { … }
const char FileSystemManager::Name_[] = …;
FileSystemManager::IPCStableHashFunction FileSystemManager::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FileSystemManager::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemManager::Open_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::ResolveURL_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Move_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Copy_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Remove_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::ReadMetadata_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Create_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Exists_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::ReadDirectory_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::ReadDirectorySync_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Write_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::WriteSync_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::Truncate_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::TruncateSync_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::CreateSnapshotFile_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::GetPlatformPath_Sym::IPCStableHash() { … }
uint32_t FileSystemManager::RegisterBlob_Sym::IPCStableHash() { … }
# endif
bool FileSystemManager::Open(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, FileSystemType file_system_type, WTF::String* out_name, ::blink::KURL* out_root_url, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::ResolveURL(const ::blink::KURL& filesystem_url, FileSystemInfoPtr* out_info, ::base::FilePath* out_file_path, bool* out_is_directory, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::Move(const ::blink::KURL& src_path, const ::blink::KURL& dest_path, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::Copy(const ::blink::KURL& src_path, const ::blink::KURL& dest_path, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::Remove(const ::blink::KURL& path, bool recursive, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::ReadMetadata(const ::blink::KURL& path, ::base::File::Info* out_file_info, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::Create(const ::blink::KURL& path, bool exclusive, bool is_directory, bool recursive, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::Exists(const ::blink::KURL& path, bool is_directory, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::ReadDirectorySync(const ::blink::KURL& path, WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr>* out_entries, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::WriteSync(const ::blink::KURL& file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> blob, int64_t position, int64_t* out_byte_count, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::TruncateSync(const ::blink::KURL& file_path, int64_t length, ::base::File::Error* out_error_code) { … }
bool FileSystemManager::CreateSnapshotFile(const ::blink::KURL& file_path, ::base::File::Info* out_file_info, ::base::FilePath* out_platform_path, ::base::File::Error* out_error_code, ::mojo::PendingRemote<ReceivedSnapshotListener>* out_snapshot_listener) { … }
bool FileSystemManager::GetPlatformPath(const ::blink::KURL& file_path, ::base::FilePath* out_platform_path) { … }
bool FileSystemManager::RegisterBlob(const WTF::String& content_type, const ::blink::KURL& url, uint64_t length, std::optional<::base::Time> expected_modification_time, ::scoped_refptr<::blink::BlobDataHandle>* out_blob) { … }
class FileSystemManager_Open_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Open_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_ResolveURL_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_ResolveURL_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Move_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Move_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Copy_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Copy_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Remove_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Remove_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_ReadMetadata_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_ReadMetadata_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Create_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Create_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Exists_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_Exists_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_ReadDirectorySync_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_ReadDirectorySync_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_WriteSync_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_WriteSync_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_Truncate_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_TruncateSync_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_TruncateSync_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_CreateSnapshotFile_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_CreateSnapshotFile_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_GetPlatformPath_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_GetPlatformPath_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemManager_RegisterBlob_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemManager_RegisterBlob_ForwardToCallback
: public mojo::MessageReceiver { … };
FileSystemManagerProxy::FileSystemManagerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool FileSystemManagerProxy::Open(
const ::scoped_refptr<const ::blink::SecurityOrigin>& param_origin, FileSystemType param_file_system_type, WTF::String* out_param_name, ::blink::KURL* out_param_root_url, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Open(
const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, FileSystemType in_file_system_type, OpenCallback callback) { … }
bool FileSystemManagerProxy::ResolveURL(
const ::blink::KURL& param_filesystem_url, FileSystemInfoPtr* out_param_info, ::base::FilePath* out_param_file_path, bool* out_param_is_directory, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::ResolveURL(
const ::blink::KURL& in_filesystem_url, ResolveURLCallback callback) { … }
bool FileSystemManagerProxy::Move(
const ::blink::KURL& param_src_path, const ::blink::KURL& param_dest_path, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Move(
const ::blink::KURL& in_src_path, const ::blink::KURL& in_dest_path, MoveCallback callback) { … }
bool FileSystemManagerProxy::Copy(
const ::blink::KURL& param_src_path, const ::blink::KURL& param_dest_path, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Copy(
const ::blink::KURL& in_src_path, const ::blink::KURL& in_dest_path, CopyCallback callback) { … }
bool FileSystemManagerProxy::Remove(
const ::blink::KURL& param_path, bool param_recursive, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Remove(
const ::blink::KURL& in_path, bool in_recursive, RemoveCallback callback) { … }
bool FileSystemManagerProxy::ReadMetadata(
const ::blink::KURL& param_path, ::base::File::Info* out_param_file_info, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::ReadMetadata(
const ::blink::KURL& in_path, ReadMetadataCallback callback) { … }
bool FileSystemManagerProxy::Create(
const ::blink::KURL& param_path, bool param_exclusive, bool param_is_directory, bool param_recursive, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Create(
const ::blink::KURL& in_path, bool in_exclusive, bool in_is_directory, bool in_recursive, CreateCallback callback) { … }
bool FileSystemManagerProxy::Exists(
const ::blink::KURL& param_path, bool param_is_directory, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::Exists(
const ::blink::KURL& in_path, bool in_is_directory, ExistsCallback callback) { … }
void FileSystemManagerProxy::ReadDirectory(
const ::blink::KURL& in_path, ::mojo::PendingRemote<FileSystemOperationListener> in_listener) { … }
bool FileSystemManagerProxy::ReadDirectorySync(
const ::blink::KURL& param_path, WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr>* out_param_entries, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::ReadDirectorySync(
const ::blink::KURL& in_path, ReadDirectorySyncCallback callback) { … }
void FileSystemManagerProxy::Write(
const ::blink::KURL& in_file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> in_blob, int64_t in_position, ::mojo::PendingReceiver<FileSystemCancellableOperation> in_op_receiver, ::mojo::PendingRemote<FileSystemOperationListener> in_listener) { … }
bool FileSystemManagerProxy::WriteSync(
const ::blink::KURL& param_file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> param_blob, int64_t param_position, int64_t* out_param_byte_count, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::WriteSync(
const ::blink::KURL& in_file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> in_blob, int64_t in_position, WriteSyncCallback callback) { … }
void FileSystemManagerProxy::Truncate(
const ::blink::KURL& in_file_path, int64_t in_length, ::mojo::PendingReceiver<FileSystemCancellableOperation> in_op_receiver, TruncateCallback callback) { … }
bool FileSystemManagerProxy::TruncateSync(
const ::blink::KURL& param_file_path, int64_t param_length, ::base::File::Error* out_param_error_code) { … }
void FileSystemManagerProxy::TruncateSync(
const ::blink::KURL& in_file_path, int64_t in_length, TruncateSyncCallback callback) { … }
bool FileSystemManagerProxy::CreateSnapshotFile(
const ::blink::KURL& param_file_path, ::base::File::Info* out_param_file_info, ::base::FilePath* out_param_platform_path, ::base::File::Error* out_param_error_code, ::mojo::PendingRemote<ReceivedSnapshotListener>* out_param_snapshot_listener) { … }
void FileSystemManagerProxy::CreateSnapshotFile(
const ::blink::KURL& in_file_path, CreateSnapshotFileCallback callback) { … }
bool FileSystemManagerProxy::GetPlatformPath(
const ::blink::KURL& param_file_path, ::base::FilePath* out_param_platform_path) { … }
void FileSystemManagerProxy::GetPlatformPath(
const ::blink::KURL& in_file_path, GetPlatformPathCallback callback) { … }
bool FileSystemManagerProxy::RegisterBlob(
const WTF::String& param_content_type, const ::blink::KURL& param_url, uint64_t param_length, std::optional<::base::Time> param_expected_modification_time, ::scoped_refptr<::blink::BlobDataHandle>* out_param_blob) { … }
void FileSystemManagerProxy::RegisterBlob(
const WTF::String& in_content_type, const ::blink::KURL& in_url, uint64_t in_length, std::optional<::base::Time> in_expected_modification_time, RegisterBlobCallback callback) { … }
class FileSystemManager_Open_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Open_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Open_ProxyToResponder::Run(
const WTF::String& in_name, const ::blink::KURL& in_root_url, ::base::File::Error in_error_code) { … }
bool FileSystemManager_Open_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_ResolveURL_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_ResolveURL_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_ResolveURL_ProxyToResponder::Run(
FileSystemInfoPtr in_info, const ::base::FilePath& in_file_path, bool in_is_directory, ::base::File::Error in_error_code) { … }
bool FileSystemManager_ResolveURL_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Move_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Move_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Move_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_Move_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Copy_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Copy_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Copy_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_Copy_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Remove_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Remove_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Remove_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_Remove_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_ReadMetadata_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_ReadMetadata_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_ReadMetadata_ProxyToResponder::Run(
const ::base::File::Info& in_file_info, ::base::File::Error in_error_code) { … }
bool FileSystemManager_ReadMetadata_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Create_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Create_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Create_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_Create_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Exists_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Exists_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Exists_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_Exists_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_ReadDirectorySync_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_ReadDirectorySync_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_ReadDirectorySync_ProxyToResponder::Run(
WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr> in_entries, ::base::File::Error in_error_code) { … }
bool FileSystemManager_ReadDirectorySync_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_WriteSync_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_WriteSync_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_WriteSync_ProxyToResponder::Run(
int64_t in_byte_count, ::base::File::Error in_error_code) { … }
bool FileSystemManager_WriteSync_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_Truncate_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_Truncate_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_Truncate_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
class FileSystemManager_TruncateSync_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_TruncateSync_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_TruncateSync_ProxyToResponder::Run(
::base::File::Error in_error_code) { … }
bool FileSystemManager_TruncateSync_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_CreateSnapshotFile_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_CreateSnapshotFile_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_CreateSnapshotFile_ProxyToResponder::Run(
const ::base::File::Info& in_file_info, const ::base::FilePath& in_platform_path, ::base::File::Error in_error_code, ::mojo::PendingRemote<ReceivedSnapshotListener> in_snapshot_listener) { … }
bool FileSystemManager_CreateSnapshotFile_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_GetPlatformPath_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_GetPlatformPath_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_GetPlatformPath_ProxyToResponder::Run(
const ::base::FilePath& in_platform_path) { … }
bool FileSystemManager_GetPlatformPath_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemManager_RegisterBlob_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemManager_RegisterBlob_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemManager_RegisterBlob_ProxyToResponder::Run(
const ::scoped_refptr<::blink::BlobDataHandle>& in_blob) { … }
bool FileSystemManager_RegisterBlob_HandleSyncResponse::Accept(
mojo::Message* message) { … }
bool FileSystemManagerStubDispatch::Accept(
FileSystemManager* impl,
mojo::Message* message) { … }
bool FileSystemManagerStubDispatch::AcceptWithResponder(
FileSystemManager* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFileSystemManagerValidationInfo[] = …;
bool FileSystemManagerRequestValidator::Accept(mojo::Message* message) { … }
bool FileSystemManagerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::FileSystemInfo::DataView, ::blink::mojom::blink::FileSystemInfoPtr>::Read(
::blink::mojom::blink::FileSystemInfo::DataView input,
::blink::mojom::blink::FileSystemInfoPtr* output) { … }
}
namespace blink::mojom::blink {
void FileSystemCancellableOperationInterceptorForTesting::Cancel(CancelCallback callback) { … }
FileSystemCancellableOperationAsyncWaiter::FileSystemCancellableOperationAsyncWaiter(
FileSystemCancellableOperation* proxy) : … { … }
FileSystemCancellableOperationAsyncWaiter::~FileSystemCancellableOperationAsyncWaiter() = default;
void FileSystemCancellableOperationAsyncWaiter::Cancel(
::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemCancellableOperationAsyncWaiter::Cancel(
) { … }
void FileSystemOperationListenerInterceptorForTesting::ResultsRetrieved(WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr> entries, bool has_more) { … }
void FileSystemOperationListenerInterceptorForTesting::DidWrite(int64_t byte_count, bool complete) { … }
void FileSystemOperationListenerInterceptorForTesting::ErrorOccurred(::base::File::Error error_code) { … }
FileSystemOperationListenerAsyncWaiter::FileSystemOperationListenerAsyncWaiter(
FileSystemOperationListener* proxy) : … { … }
FileSystemOperationListenerAsyncWaiter::~FileSystemOperationListenerAsyncWaiter() = default;
void ReceivedSnapshotListenerInterceptorForTesting::DidReceiveSnapshotFile() { … }
ReceivedSnapshotListenerAsyncWaiter::ReceivedSnapshotListenerAsyncWaiter(
ReceivedSnapshotListener* proxy) : … { … }
ReceivedSnapshotListenerAsyncWaiter::~ReceivedSnapshotListenerAsyncWaiter() = default;
void FileSystemManagerInterceptorForTesting::Open(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, FileSystemType file_system_type, OpenCallback callback) { … }
void FileSystemManagerInterceptorForTesting::ResolveURL(const ::blink::KURL& filesystem_url, ResolveURLCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Move(const ::blink::KURL& src_path, const ::blink::KURL& dest_path, MoveCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Copy(const ::blink::KURL& src_path, const ::blink::KURL& dest_path, CopyCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Remove(const ::blink::KURL& path, bool recursive, RemoveCallback callback) { … }
void FileSystemManagerInterceptorForTesting::ReadMetadata(const ::blink::KURL& path, ReadMetadataCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Create(const ::blink::KURL& path, bool exclusive, bool is_directory, bool recursive, CreateCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Exists(const ::blink::KURL& path, bool is_directory, ExistsCallback callback) { … }
void FileSystemManagerInterceptorForTesting::ReadDirectory(const ::blink::KURL& path, ::mojo::PendingRemote<FileSystemOperationListener> listener) { … }
void FileSystemManagerInterceptorForTesting::ReadDirectorySync(const ::blink::KURL& path, ReadDirectorySyncCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Write(const ::blink::KURL& file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> blob, int64_t position, ::mojo::PendingReceiver<FileSystemCancellableOperation> op_receiver, ::mojo::PendingRemote<FileSystemOperationListener> listener) { … }
void FileSystemManagerInterceptorForTesting::WriteSync(const ::blink::KURL& file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> blob, int64_t position, WriteSyncCallback callback) { … }
void FileSystemManagerInterceptorForTesting::Truncate(const ::blink::KURL& file_path, int64_t length, ::mojo::PendingReceiver<FileSystemCancellableOperation> op_receiver, TruncateCallback callback) { … }
void FileSystemManagerInterceptorForTesting::TruncateSync(const ::blink::KURL& file_path, int64_t length, TruncateSyncCallback callback) { … }
void FileSystemManagerInterceptorForTesting::CreateSnapshotFile(const ::blink::KURL& file_path, CreateSnapshotFileCallback callback) { … }
void FileSystemManagerInterceptorForTesting::GetPlatformPath(const ::blink::KURL& file_path, GetPlatformPathCallback callback) { … }
void FileSystemManagerInterceptorForTesting::RegisterBlob(const WTF::String& content_type, const ::blink::KURL& url, uint64_t length, std::optional<::base::Time> expected_modification_time, RegisterBlobCallback callback) { … }
FileSystemManagerAsyncWaiter::FileSystemManagerAsyncWaiter(
FileSystemManager* proxy) : … { … }
FileSystemManagerAsyncWaiter::~FileSystemManagerAsyncWaiter() = default;
void FileSystemManagerAsyncWaiter::Open(
const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, FileSystemType file_system_type, WTF::String* out_name, ::blink::KURL* out_root_url, ::base::File::Error* out_error_code) { … }
void FileSystemManagerAsyncWaiter::ResolveURL(
const ::blink::KURL& filesystem_url, FileSystemInfoPtr* out_info, ::base::FilePath* out_file_path, bool* out_is_directory, ::base::File::Error* out_error_code) { … }
void FileSystemManagerAsyncWaiter::Move(
const ::blink::KURL& src_path, const ::blink::KURL& dest_path, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Move(
const ::blink::KURL& src_path, const ::blink::KURL& dest_path) { … }
void FileSystemManagerAsyncWaiter::Copy(
const ::blink::KURL& src_path, const ::blink::KURL& dest_path, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Copy(
const ::blink::KURL& src_path, const ::blink::KURL& dest_path) { … }
void FileSystemManagerAsyncWaiter::Remove(
const ::blink::KURL& path, bool recursive, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Remove(
const ::blink::KURL& path, bool recursive) { … }
void FileSystemManagerAsyncWaiter::ReadMetadata(
const ::blink::KURL& path, ::base::File::Info* out_file_info, ::base::File::Error* out_error_code) { … }
void FileSystemManagerAsyncWaiter::Create(
const ::blink::KURL& path, bool exclusive, bool is_directory, bool recursive, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Create(
const ::blink::KURL& path, bool exclusive, bool is_directory, bool recursive) { … }
void FileSystemManagerAsyncWaiter::Exists(
const ::blink::KURL& path, bool is_directory, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Exists(
const ::blink::KURL& path, bool is_directory) { … }
void FileSystemManagerAsyncWaiter::ReadDirectorySync(
const ::blink::KURL& path, WTF::Vector<::filesystem::mojom::blink::DirectoryEntryPtr>* out_entries, ::base::File::Error* out_error_code) { … }
void FileSystemManagerAsyncWaiter::WriteSync(
const ::blink::KURL& file_path, ::mojo::PendingRemote<::blink::mojom::blink::Blob> blob, int64_t position, int64_t* out_byte_count, ::base::File::Error* out_error_code) { … }
void FileSystemManagerAsyncWaiter::Truncate(
const ::blink::KURL& file_path, int64_t length, ::mojo::PendingReceiver<FileSystemCancellableOperation> op_receiver, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::Truncate(
const ::blink::KURL& file_path, int64_t length, ::mojo::PendingReceiver<FileSystemCancellableOperation> op_receiver) { … }
void FileSystemManagerAsyncWaiter::TruncateSync(
const ::blink::KURL& file_path, int64_t length, ::base::File::Error* out_error_code) { … }
::base::File::Error FileSystemManagerAsyncWaiter::TruncateSync(
const ::blink::KURL& file_path, int64_t length) { … }
void FileSystemManagerAsyncWaiter::CreateSnapshotFile(
const ::blink::KURL& file_path, ::base::File::Info* out_file_info, ::base::FilePath* out_platform_path, ::base::File::Error* out_error_code, ::mojo::PendingRemote<ReceivedSnapshotListener>* out_snapshot_listener) { … }
void FileSystemManagerAsyncWaiter::GetPlatformPath(
const ::blink::KURL& file_path, ::base::FilePath* out_platform_path) { … }
::base::FilePath FileSystemManagerAsyncWaiter::GetPlatformPath(
const ::blink::KURL& file_path) { … }
void FileSystemManagerAsyncWaiter::RegisterBlob(
const WTF::String& content_type, const ::blink::KURL& url, uint64_t length, std::optional<::base::Time> expected_modification_time, ::scoped_refptr<::blink::BlobDataHandle>* out_blob) { … }
::scoped_refptr<::blink::BlobDataHandle> FileSystemManagerAsyncWaiter::RegisterBlob(
const WTF::String& content_type, const ::blink::KURL& url, uint64_t length, std::optional<::base::Time> expected_modification_time) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif