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

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: Trying blindly to resolve circular dependency Created 4 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
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 5ff0f429e7297b9b132004ad0d666743c5a2df82..2a0d0647542942775e531021a59f6eb58eb28efa 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,6 +22,14 @@ class ScriptState;
class CORE_EXPORT ReadableStreamOperations {
STATIC_ONLY(ReadableStreamOperations);
public:
+ // createReadableStreamWithExternalController
+ // If the caller supplies an invalid strategy (e.g. one that returns
+ // negative sizes, or doesn't have appropriate properties), this will crash.
+ 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

Powered by Google App Engine
This is Rietveld 408576698