OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This is not a spec interface. Instead, it is used to generate bindings |
| 6 // so that Blink code which wishes to create a stream can derive from |
| 7 // UnderlyingSourceBase, and a JavaScript object can then be generated |
| 8 // automatically for use in initializing a ReadableStream. |
| 9 |
| 10 [NoInterfaceObject, GarbageCollected, ActiveDOMObject] |
| 11 interface UnderlyingSourceBase { |
| 12 [CallWith=ScriptState, ImplementedAs=startWrapper] Promise<void> start(any s
tream); |
| 13 [CallWith=ScriptState] Promise<void> pull(); |
| 14 [CallWith=ScriptState, ImplementedAs=cancelWrapper] Promise<void> cancel([De
fault=Undefined] optional any reason); |
| 15 }; |
OLD | NEW |