summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/native_file_system/file_system_writable_file_stream.idl
blob: 8fd21015f1e9c01b240df7cc18fcf3758cc61598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2019 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/native-file-system/#filesystemwritablefilestream
[
    Exposed=(Window,Worker),
    SecureContext,
    ImplementedAs=NativeFileSystemWritableFileStream,
    RuntimeEnabled=WritableFileStream
 ] interface FileSystemWritableFileStream : WritableStream {
   [CallWith=ScriptState, RaisesException] Promise<void> write((BufferSource or Blob or USVString or WriteParams) data);
   [CallWith=ScriptState, RaisesException] Promise<void> truncate(unsigned long long size);
   [CallWith=ScriptState, RaisesException] Promise<void> close();
   [CallWith=ScriptState, RaisesException] Promise<void> seek(unsigned long long offset);
 };