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

Side by Side Diff: Source/core/streams/CountQueuingStrategy.js

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: Remove C++ queuing strategies 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 unified diff | Download patch
OLDNEW
(Empty)
1 (function(global, exports) {
2 'use strict';
3
4 const NONE = 0;
5 const DONT_ENUM = 2;
6
7 class CountQueuingStrategy {
8 constructor(options) {
9 %AddNamedProperty(this, 'highWaterMark', options.highWaterMark, NONE );
10 }
11
12 size(chunk) {
13 return 1;
14 }
15 }
16
17 %AddNamedProperty(global, 'CountQueuingStrategy', CountQueuingStrategy, DONT _ENUM);
18
19 // Export a separate copy that doesn't need options objects and can't be int erfered with.
20 exports.BuiltInCountQueuingStrategy = class BuiltInCountQueuingStrategy {
21 constructor(highWaterMark) {
22 %AddNamedProperty(this, 'highWaterMark', highWaterMark, NONE);
23 }
24
25 size(chunk) {
26 return 1;
27 }
28 };
29 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698