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

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

Issue 837673002: Introduce ExclusiveStreamReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/ExclusiveStreamReader.cpp ('k') | Source/core/streams/ExclusiveStreamReaderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/streams/ExclusiveStreamReader.idl
diff --git a/Source/core/streams/ReadableStream.idl b/Source/core/streams/ExclusiveStreamReader.idl
similarity index 63%
copy from Source/core/streams/ReadableStream.idl
copy to Source/core/streams/ExclusiveStreamReader.idl
index 4e299434d654deab776e747603e310a1db4d00a1..1dc03d0227be5a925c17b766dd269ab6d0ba287c 100644
--- a/Source/core/streams/ReadableStream.idl
+++ b/Source/core/streams/ExclusiveStreamReader.idl
@@ -1,25 +1,22 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 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.
-enum ReadableStreamState {
- "readable",
- "waiting",
- "closed",
- "errored"
-};
-
[
RuntimeEnabled=ExperimentalStream,
GarbageCollected,
- Exposed=(Window,Worker),
ActiveDOMObject,
-] interface ReadableStream {
- [CallWith=ScriptState, RaisesException] any read();
+ Exposed=(Window,Worker),
+] interface ExclusiveStreamReader {
+ // FIXME: Add constructor.
+
+ [CallWith=ScriptState] readonly attribute Promise closed;
+ readonly attribute boolean isActive;
[CallWith=ScriptState] readonly attribute Promise ready;
- [ImplementedAs=stateString] readonly attribute ReadableStreamState state;
+ // See ReadableStream.state.
+ readonly attribute DOMString state;
[CallWith=ScriptState] Promise cancel(any reason);
-
- [CallWith=ScriptState] readonly attribute Promise closed;
+ [CallWith=ScriptState, RaisesException] any read();
+ void releaseLock();
};
« no previous file with comments | « Source/core/streams/ExclusiveStreamReader.cpp ('k') | Source/core/streams/ExclusiveStreamReaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698