#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_file_delegate_host.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_file_delegate_host.mojom-params-data.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_file_delegate_host.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_file_delegate_host.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_file_delegate_host.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
const char FileSystemAccessFileDelegateHost::Name_[] = …;
FileSystemAccessFileDelegateHost::IPCStableHashFunction FileSystemAccessFileDelegateHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FileSystemAccessFileDelegateHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FileSystemAccessFileDelegateHost::Read_Sym::IPCStableHash() { … }
uint32_t FileSystemAccessFileDelegateHost::Write_Sym::IPCStableHash() { … }
uint32_t FileSystemAccessFileDelegateHost::GetLength_Sym::IPCStableHash() { … }
uint32_t FileSystemAccessFileDelegateHost::SetLength_Sym::IPCStableHash() { … }
# endif
bool FileSystemAccessFileDelegateHost::Read(int64_t offset, int32_t bytes_to_read, std::optional<::mojo_base::BigBuffer>* out_data, ::base::File::Error* out_error, int32_t* out_bytes_read) { … }
bool FileSystemAccessFileDelegateHost::Write(int64_t offset, ::mojo::ScopedDataPipeConsumerHandle data, ::base::File::Error* out_error, int32_t* out_bytes_written) { … }
bool FileSystemAccessFileDelegateHost::GetLength(::base::File::Error* out_error, int64_t* out_length) { … }
bool FileSystemAccessFileDelegateHost::SetLength(int64_t length, ::base::File::Error* out_error) { … }
class FileSystemAccessFileDelegateHost_Read_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_Read_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_Write_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_Write_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_GetLength_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_GetLength_ForwardToCallback
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_SetLength_HandleSyncResponse
: public mojo::MessageReceiver { … };
class FileSystemAccessFileDelegateHost_SetLength_ForwardToCallback
: public mojo::MessageReceiver { … };
FileSystemAccessFileDelegateHostProxy::FileSystemAccessFileDelegateHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool FileSystemAccessFileDelegateHostProxy::Read(
int64_t param_offset, int32_t param_bytes_to_read, std::optional<::mojo_base::BigBuffer>* out_param_data, ::base::File::Error* out_param_error, int32_t* out_param_bytes_read) { … }
void FileSystemAccessFileDelegateHostProxy::Read(
int64_t in_offset, int32_t in_bytes_to_read, ReadCallback callback) { … }
bool FileSystemAccessFileDelegateHostProxy::Write(
int64_t param_offset, ::mojo::ScopedDataPipeConsumerHandle param_data, ::base::File::Error* out_param_error, int32_t* out_param_bytes_written) { … }
void FileSystemAccessFileDelegateHostProxy::Write(
int64_t in_offset, ::mojo::ScopedDataPipeConsumerHandle in_data, WriteCallback callback) { … }
bool FileSystemAccessFileDelegateHostProxy::GetLength(
::base::File::Error* out_param_error, int64_t* out_param_length) { … }
void FileSystemAccessFileDelegateHostProxy::GetLength(
GetLengthCallback callback) { … }
bool FileSystemAccessFileDelegateHostProxy::SetLength(
int64_t param_length, ::base::File::Error* out_param_error) { … }
void FileSystemAccessFileDelegateHostProxy::SetLength(
int64_t in_length, SetLengthCallback callback) { … }
class FileSystemAccessFileDelegateHost_Read_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemAccessFileDelegateHost_Read_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemAccessFileDelegateHost_Read_ProxyToResponder::Run(
std::optional<::mojo_base::BigBuffer> in_data, ::base::File::Error in_error, int32_t in_bytes_read) { … }
bool FileSystemAccessFileDelegateHost_Read_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemAccessFileDelegateHost_Write_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemAccessFileDelegateHost_Write_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemAccessFileDelegateHost_Write_ProxyToResponder::Run(
::base::File::Error in_error, int32_t in_bytes_written) { … }
bool FileSystemAccessFileDelegateHost_Write_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemAccessFileDelegateHost_GetLength_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemAccessFileDelegateHost_GetLength_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemAccessFileDelegateHost_GetLength_ProxyToResponder::Run(
::base::File::Error in_error, int64_t in_length) { … }
bool FileSystemAccessFileDelegateHost_GetLength_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class FileSystemAccessFileDelegateHost_SetLength_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool FileSystemAccessFileDelegateHost_SetLength_ForwardToCallback::Accept(
mojo::Message* message) { … }
void FileSystemAccessFileDelegateHost_SetLength_ProxyToResponder::Run(
::base::File::Error in_error) { … }
bool FileSystemAccessFileDelegateHost_SetLength_HandleSyncResponse::Accept(
mojo::Message* message) { … }
bool FileSystemAccessFileDelegateHostStubDispatch::Accept(
FileSystemAccessFileDelegateHost* impl,
mojo::Message* message) { … }
bool FileSystemAccessFileDelegateHostStubDispatch::AcceptWithResponder(
FileSystemAccessFileDelegateHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFileSystemAccessFileDelegateHostValidationInfo[] = …;
bool FileSystemAccessFileDelegateHostRequestValidator::Accept(mojo::Message* message) { … }
bool FileSystemAccessFileDelegateHostResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::mojom::blink {
void FileSystemAccessFileDelegateHostInterceptorForTesting::Read(int64_t offset, int32_t bytes_to_read, ReadCallback callback) { … }
void FileSystemAccessFileDelegateHostInterceptorForTesting::Write(int64_t offset, ::mojo::ScopedDataPipeConsumerHandle data, WriteCallback callback) { … }
void FileSystemAccessFileDelegateHostInterceptorForTesting::GetLength(GetLengthCallback callback) { … }
void FileSystemAccessFileDelegateHostInterceptorForTesting::SetLength(int64_t length, SetLengthCallback callback) { … }
FileSystemAccessFileDelegateHostAsyncWaiter::FileSystemAccessFileDelegateHostAsyncWaiter(
FileSystemAccessFileDelegateHost* proxy) : … { … }
FileSystemAccessFileDelegateHostAsyncWaiter::~FileSystemAccessFileDelegateHostAsyncWaiter() = default;
void FileSystemAccessFileDelegateHostAsyncWaiter::Read(
int64_t offset, int32_t bytes_to_read, std::optional<::mojo_base::BigBuffer>* out_data, ::base::File::Error* out_error, int32_t* out_bytes_read) { … }
void FileSystemAccessFileDelegateHostAsyncWaiter::Write(
int64_t offset, ::mojo::ScopedDataPipeConsumerHandle data, ::base::File::Error* out_error, int32_t* out_bytes_written) { … }
void FileSystemAccessFileDelegateHostAsyncWaiter::GetLength(
::base::File::Error* out_error, int64_t* out_length) { … }
void FileSystemAccessFileDelegateHostAsyncWaiter::SetLength(
int64_t length, ::base::File::Error* out_error) { … }
::base::File::Error FileSystemAccessFileDelegateHostAsyncWaiter::SetLength(
int64_t length) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif