Index: Source/core/streams/ReadableStreamReader.idl |
diff --git a/Source/core/streams/ExclusiveStreamReader.idl b/Source/core/streams/ReadableStreamReader.idl |
similarity index 77% |
rename from Source/core/streams/ExclusiveStreamReader.idl |
rename to Source/core/streams/ReadableStreamReader.idl |
index 1dc03d0227be5a925c17b766dd269ab6d0ba287c..3c98548b4d12250cfbaa25c6b5acc42f8f8ab3b1 100644 |
--- a/Source/core/streams/ExclusiveStreamReader.idl |
+++ b/Source/core/streams/ReadableStreamReader.idl |
@@ -2,19 +2,25 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+enum ReadableStreamState { |
+ "readable", |
+ "waiting", |
+ "closed", |
+ "errored" |
+}; |
+ |
[ |
RuntimeEnabled=ExperimentalStream, |
GarbageCollected, |
ActiveDOMObject, |
Exposed=(Window,Worker), |
-] interface ExclusiveStreamReader { |
+] interface ReadableStreamReader { |
// FIXME: Add constructor. |
[CallWith=ScriptState] readonly attribute Promise closed; |
readonly attribute boolean isActive; |
[CallWith=ScriptState] readonly attribute Promise ready; |
- // See ReadableStream.state. |
- readonly attribute DOMString state; |
+ readonly attribute ReadableStreamState state; |
[CallWith=ScriptState] Promise cancel(any reason); |
[CallWith=ScriptState, RaisesException] any read(); |