blob: c4362be6e591994f1144fd56d09deaca0165ebda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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://github.com/WICG/writable-files/blob/master/EXPLAINER.md
[
NoInterfaceObject,
RuntimeEnabled=WritableFiles
] interface FileSystemWriter {
// TODO(mek): Support other types, such as ReadableStream, by using 'any'.
[CallWith=ScriptState] Promise<void> write(unsigned long long position, Blob data);
[CallWith=ScriptState] Promise<void> truncate(unsigned long long size);
[CallWith=ScriptState] Promise<void> close();
};
|