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

Side by Side Diff: Source/core/streams/ByteLengthQueuingStrategy.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: That todo is not necessary according to yhirano@ Created 5 years, 5 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
« no previous file with comments | « Source/core/core_generated.gypi ('k') | Source/core/streams/CountQueuingStrategy.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function(global) {
2 'use strict';
3
4 const NONE = 0;
5 const DONT_ENUM = 2;
6
7 class ByteLengthQueuingStrategy {
8 constructor(options) {
9 %AddNamedProperty(this, 'highWaterMark', options.highWaterMark, NONE );
10 }
11
12 size(chunk) {
13 return chunk.byteLength;
14 }
15 }
16
17 %AddNamedProperty(global, 'ByteLengthQueuingStrategy', ByteLengthQueuingStra tegy, DONT_ENUM);
18 });
OLDNEW
« no previous file with comments | « Source/core/core_generated.gypi ('k') | Source/core/streams/CountQueuingStrategy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698