#include "third_party/blink/renderer/modules/file_system_access/file_system_handle.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_cloud_identifier.mojom-blink.h"
#include "third_party/blink/public/mojom/file_system_access/file_system_access_error.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_file_system_cloud_identifier.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_file_system_handle_permission_descriptor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_file_system_permission_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_permission_state.h"
#include "third_party/blink/renderer/modules/file_system_access/file_system_access_error.h"
#include "third_party/blink/renderer/modules/file_system_access/file_system_directory_handle.h"
#include "third_party/blink/renderer/modules/file_system_access/file_system_file_handle.h"
#include "third_party/blink/renderer/modules/permissions/permission_utils.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
FileSystemAccessEntryPtr;
FileSystemAccessErrorPtr;
FileSystemHandle::FileSystemHandle(ExecutionContext* execution_context,
const String& name)
: … { … }
FileSystemHandle* FileSystemHandle::CreateFromMojoEntry(
mojom::blink::FileSystemAccessEntryPtr e,
ExecutionContext* execution_context) { … }
ScriptPromise<V8PermissionState> FileSystemHandle::queryPermission(
ScriptState* script_state,
const FileSystemHandlePermissionDescriptor* descriptor) { … }
ScriptPromise<V8PermissionState> FileSystemHandle::requestPermission(
ScriptState* script_state,
const FileSystemHandlePermissionDescriptor* descriptor,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> FileSystemHandle::move(
ScriptState* script_state,
const String& new_entry_name,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> FileSystemHandle::move(
ScriptState* script_state,
FileSystemDirectoryHandle* destination_directory,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> FileSystemHandle::move(
ScriptState* script_state,
FileSystemDirectoryHandle* destination_directory,
const String& new_entry_name,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> FileSystemHandle::remove(
ScriptState* script_state,
const FileSystemRemoveOptions* options,
ExceptionState& exception_state) { … }
ScriptPromise<IDLBoolean> FileSystemHandle::isSameEntry(
ScriptState* script_state,
FileSystemHandle* other,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUSVString> FileSystemHandle::getUniqueId(
ScriptState* script_state,
ExceptionState& exception_state) { … }
ScriptPromise<IDLSequence<FileSystemCloudIdentifier>>
FileSystemHandle::getCloudIdentifiers(ScriptState* script_state,
ExceptionState& exception_state) { … }
void FileSystemHandle::Trace(Visitor* visitor) const { … }
}