diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/native_io/native_io_manager.idl')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/native_io/native_io_manager.idl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/native_io/native_io_manager.idl b/chromium/third_party/blink/renderer/modules/native_io/native_io_manager.idl new file mode 100644 index 00000000000..c2317ff73d5 --- /dev/null +++ b/chromium/third_party/blink/renderer/modules/native_io/native_io_manager.idl @@ -0,0 +1,28 @@ +// Copyright 2020 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// https://github.com/fivedots/nativeio-explainer + +[ + Exposed=(Window,Worker), + RuntimeEnabled=NativeIO, + SecureContext +] interface NativeIOManager { + [ + CallWith=ScriptState, RaisesException + ] Promise<NativeIOFile> open(DOMString name); + [ + Exposed=DedicatedWorker, RaisesException + ] NativeIOFileSync openSync(DOMString name); + + [ + CallWith=ScriptState, ImplementedAs=Delete, RaisesException + ] Promise<void> delete(DOMString name); + [Exposed=DedicatedWorker, RaisesException] void deleteSync(DOMString name); + + [ + CallWith=ScriptState, RaisesException + ] Promise<sequence<DOMString>> getAll(); + [Exposed=DedicatedWorker, RaisesException] sequence<DOMString> getAllSync(); +}; |