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

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

Issue 1004623007: Streams Implementation Update: async read (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stream-reader-read
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/ReadableStreamReader.idl b/Source/core/streams/ReadableStreamReader.idl
index 3c98548b4d12250cfbaa25c6b5acc42f8f8ab3b1..2185d5bfd29c2ee0e17285c5d78959467915bdb2 100644
--- a/Source/core/streams/ReadableStreamReader.idl
+++ b/Source/core/streams/ReadableStreamReader.idl
@@ -2,13 +2,6 @@
// 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,
@@ -17,12 +10,9 @@ enum ReadableStreamState {
] interface ReadableStreamReader {
// FIXME: Add constructor.
- [CallWith=ScriptState] readonly attribute Promise closed;
- readonly attribute boolean isActive;
- [CallWith=ScriptState] readonly attribute Promise ready;
- readonly attribute ReadableStreamState state;
+ [CallWith=ScriptState] readonly attribute Promise<void> closed;
+ [CallWith=ScriptState] Promise<any> read();
- [CallWith=ScriptState] Promise cancel(any reason);
- [CallWith=ScriptState, RaisesException] any read();
- void releaseLock();
+ [CallWith=ScriptState] Promise<void> cancel(any reason);
+ [RaisesException] void releaseLock();
};
« 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