blob: 0b59cdf3c0dfbfdec9e72c309dbe4655b95e22cf [file] [log] [blame]
// 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.
// This is only used when the new C++ implementation is enabled.
] interface WritableStreamDefaultWriter {
[CallWith=ScriptState, RaisesException] constructor(WritableStream stream);
[CallWith=ScriptState, NotEnumerable] readonly attribute Promise<void>
[RaisesException, CallWith=ScriptState, NotEnumerable] readonly attribute
any desiredSize;
[CallWith=ScriptState, NotEnumerable] readonly attribute Promise<void>
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> abort(
optional any reason);
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> close();
[CallWith=ScriptState, NotEnumerable] void releaseLock();
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> write(
optional any chunk);