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

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStreamOperations.h

Issue 1898873003: Add ReadableStream operations to use it from Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@body-stream-buffer-test-refactoring
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/core/streams/ReadableStreamOperations.h
diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamOperations.h b/third_party/WebKit/Source/core/streams/ReadableStreamOperations.h
index 2a0d0647542942775e531021a59f6eb58eb28efa..bd885ba6d97a465a61fc8d799e6efbf560fd9ff2 100644
--- a/third_party/WebKit/Source/core/streams/ReadableStreamOperations.h
+++ b/third_party/WebKit/Source/core/streams/ReadableStreamOperations.h
@@ -43,10 +43,26 @@ public:
// This function assumes |isReadableStream(stream)|.
static bool isDisturbed(ScriptState*, ScriptValue stream);
+ // SetReadableStreamDisturbed
+ // This function assumes |isReadableStream(stream)|.
+ static void setDisturbed(ScriptState*, ScriptValue stream);
+
// IsReadableStreamLocked
// This function assumes |isReadableStream(stream)|.
static bool isLocked(ScriptState*, ScriptValue stream);
+ // IsReadableStreamReadable
+ // This function assumes |isReadableStream(stream)|.
+ static bool isReadable(ScriptState*, ScriptValue stream);
+
+ // IsReadableStreamClosed
+ // This function assumes |isReadableStream(stream)|.
+ static bool isClosed(ScriptState*, ScriptValue stream);
+
+ // IsReadableStreamErrored
+ // This function assumes |isReadableStream(stream)|.
+ static bool isErrored(ScriptState*, ScriptValue stream);
+
// IsReadableStreamReader
static bool isReadableStreamReader(ScriptState*, ScriptValue);

Powered by Google App Engine
This is Rietveld 408576698