| // Copyright 2018 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://wicg.github.io/writable-files/#filesystemwriter |
| [ |
| NoInterfaceObject, |
| RuntimeEnabled=WritableFiles |
| ] interface FileSystemWriter { |
| // TODO(mek): 'any' really is 'Blob or ReadableStream', but that's not |
| // currently supported by our bindings. |
| [CallWith=ScriptState, RaisesException] Promise<void> write(unsigned long long position, any data); |
| [CallWith=ScriptState] Promise<void> truncate(unsigned long long size); |
| |
| [CallWith=ScriptState] Promise<void> close(); |
| }; |