summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h b/chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h
index 14e9b3eeb75..8c037ea4114 100644
--- a/chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h
+++ b/chromium/third_party/blink/renderer/modules/native_file_system/native_file_system_directory_handle.h
@@ -5,9 +5,10 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_NATIVE_FILE_SYSTEM_NATIVE_FILE_SYSTEM_DIRECTORY_HANDLE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_NATIVE_FILE_SYSTEM_NATIVE_FILE_SYSTEM_DIRECTORY_HANDLE_H_
+#include "mojo/public/cpp/bindings/pending_remote.h"
+#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/public/mojom/native_file_system/native_file_system_directory_handle.mojom-blink.h"
#include "third_party/blink/renderer/modules/native_file_system/native_file_system_handle.h"
-#include "third_party/blink/renderer/platform/mojo/revocable_interface_ptr.h"
namespace blink {
class FileSystemGetDirectoryOptions;
@@ -20,8 +21,9 @@ class NativeFileSystemDirectoryHandle final : public NativeFileSystemHandle {
public:
NativeFileSystemDirectoryHandle(
+ ExecutionContext* context,
const String& name,
- RevocableInterfacePtr<mojom::blink::NativeFileSystemDirectoryHandle>);
+ mojo::PendingRemote<mojom::blink::NativeFileSystemDirectoryHandle>);
bool isDirectory() const override { return true; }
@@ -39,12 +41,15 @@ class NativeFileSystemDirectoryHandle final : public NativeFileSystemHandle {
static ScriptPromise getSystemDirectory(ScriptState*,
const GetSystemDirectoryOptions*);
- mojom::blink::NativeFileSystemTransferTokenPtr Transfer() override;
+ mojo::PendingRemote<mojom::blink::NativeFileSystemTransferToken> Transfer()
+ override;
mojom::blink::NativeFileSystemDirectoryHandle* MojoHandle() {
return mojo_ptr_.get();
}
+ void ContextDestroyed(ExecutionContext*) override;
+
private:
void QueryPermissionImpl(
bool writable,
@@ -54,8 +59,7 @@ class NativeFileSystemDirectoryHandle final : public NativeFileSystemHandle {
base::OnceCallback<void(mojom::blink::NativeFileSystemErrorPtr,
mojom::blink::PermissionStatus)>) override;
- RevocableInterfacePtr<mojom::blink::NativeFileSystemDirectoryHandle>
- mojo_ptr_;
+ mojo::Remote<mojom::blink::NativeFileSystemDirectoryHandle> mojo_ptr_;
};
} // namespace blink