Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1046)

Unified Diff: Source/core/streams/ReadableStreamReader.idl

Issue 1001233002: Streams Implementation Update: Reader name and Stream methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/streams/ReadableStreamReader.cpp ('k') | Source/core/streams/ReadableStreamReaderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/streams/ReadableStreamReader.cpp ('k') | Source/core/streams/ReadableStreamReaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698