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

Unified Diff: Source/core/streams/QueuingStrategyBase.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: Created 5 years, 6 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: Source/core/streams/QueuingStrategyBase.h
diff --git a/Source/core/streams/QueuingStrategyBase.h b/Source/core/streams/QueuingStrategyBase.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc42b4dd97d658e498242f4fcd26591e9127345f
--- /dev/null
+++ b/Source/core/streams/QueuingStrategyBase.h
@@ -0,0 +1,26 @@
+#ifndef QueuingStrategyBase_h
+#define QueuingStrategyBase_h
+
+#include "bindings/core/v8/ScriptValue.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/CoreExport.h"
+
+namespace blink {
+
+class CORE_EXPORT QueuingStrategyBase : public GarbageCollectedFinalized<QueuingStrategyBase>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ explicit QueuingStrategyBase(double highWaterMark);
+ double highWaterMark();
+ virtual double size(ScriptValue chunk) = 0;
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ double m_highWaterMark;
+};
+
+} // namespace blink
+
+#endif QueuingStrategyBase_h

Powered by Google App Engine
This is Rietveld 408576698