summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h b/chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h
index 8ef5fe4ca0e..58290704ba6 100644
--- a/chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h
+++ b/chromium/third_party/blink/renderer/modules/file_system_access/file_system_handle.h
@@ -20,6 +20,7 @@
namespace blink {
class ExecutionContext;
class FileSystemHandlePermissionDescriptor;
+class FileSystemRemoveOptions;
class FileSystemHandle : public ScriptWrappable, public ExecutionContextClient {
DEFINE_WRAPPERTYPEINFO();
@@ -40,6 +41,8 @@ class FileSystemHandle : public ScriptWrappable, public ExecutionContextClient {
ScriptPromise requestPermission(ScriptState*,
const FileSystemHandlePermissionDescriptor*);
+ ScriptPromise remove(ScriptState*, const FileSystemRemoveOptions* options);
+
ScriptPromise isSameEntry(ScriptState*, FileSystemHandle* other);
// Grab a handle to a transfer token. This may return an invalid PendingRemote
@@ -57,6 +60,9 @@ class FileSystemHandle : public ScriptWrappable, public ExecutionContextClient {
bool writable,
base::OnceCallback<void(mojom::blink::FileSystemAccessErrorPtr,
mojom::blink::PermissionStatus)>) = 0;
+ virtual void RemoveImpl(
+ const FileSystemRemoveOptions* options,
+ base::OnceCallback<void(mojom::blink::FileSystemAccessErrorPtr)>) = 0;
virtual void IsSameEntryImpl(
mojo::PendingRemote<mojom::blink::FileSystemAccessTransferToken> other,
base::OnceCallback<void(mojom::blink::FileSystemAccessErrorPtr,