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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperations.h

Issue 1167343002: Add methods for creating V8 extras-based ReadableStreams from C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't modify UnderlyingSource.h, oops Created 4 years, 11 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/bindings/core/v8/ReadableStreamOperations.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperations.h b/third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperations.h
index b456fb9eeea0b460dccc51535727290e2cbf9935..5c1530e6bdf617151f318e1ab7f40706fecf8b8b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperations.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperations.h
@@ -11,6 +11,7 @@
namespace blink {
+class UnderlyingSourceBase;
class ExceptionState;
class ScriptState;
@@ -21,29 +22,35 @@ class ScriptState;
class CORE_EXPORT ReadableStreamOperations {
STATIC_ONLY(ReadableStreamOperations);
public:
+ // createReadableStreamWithExternalController
+ static ScriptValue createReadableStream(ScriptState*, UnderlyingSourceBase*, ScriptValue strategy);
+
+ // createBuiltInCountQueuingStrategy
+ static ScriptValue createCountQueuingStrategy(ScriptState*, size_t highWaterMark);
+
// AcquireReadableStreamReader
// This function assumes |isReadableStream(stream)|.
// Returns an empty value and throws an error via the ExceptionState when
// errored.
- static ScriptValue getReader(ScriptState*, v8::Local<v8::Value> stream, ExceptionState&);
+ static ScriptValue getReader(ScriptState*, ScriptValue stream, ExceptionState&);
// IsReadableStream
- static bool isReadableStream(ScriptState*, v8::Local<v8::Value>);
+ static bool isReadableStream(ScriptState*, ScriptValue);
// IsReadableStreamDisturbed
// This function assumes |isReadableStream(stream)|.
- static bool isDisturbed(ScriptState*, v8::Local<v8::Value> stream);
+ static bool isDisturbed(ScriptState*, ScriptValue stream);
// IsReadableStreamLocked
// This function assumes |isReadableStream(stream)|.
- static bool isLocked(ScriptState*, v8::Local<v8::Value> stream);
+ static bool isLocked(ScriptState*, ScriptValue stream);
// IsReadableStreamReader
- static bool isReadableStreamReader(ScriptState*, v8::Local<v8::Value>);
+ static bool isReadableStreamReader(ScriptState*, ScriptValue);
// ReadFromReadableStreamReader
// This function assumes |isReadableStreamReader(reader)|.
- static ScriptPromise read(ScriptState*, v8::Local<v8::Value> reader);
+ static ScriptPromise read(ScriptState*, ScriptValue reader);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698