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

Side by Side Diff: third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js

Issue 1378213002: Implement ByteLengthQueuingStrategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test tweaks Created 5 years, 2 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 | « third_party/WebKit/LayoutTests/http/tests/streams/byte-length-queuing-strategy.js ('k') | no next file » | 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, binding, v8) {
2 'use strict';
3
4 const defineProperty = global.Object.defineProperty;
5
6 class ByteLengthQueuingStrategy {
7 constructor(options) {
8 defineProperty(this, 'highWaterMark', {
9 value: options.highWaterMark,
10 enumerable: true,
11 configurable: true,
12 writable: true
13 });
14 }
15 size(chunk) {
16 return chunk.byteLength;
17 }
18 }
19
20 defineProperty(global, 'ByteLengthQueuingStrategy', {
21 value: ByteLengthQueuingStrategy,
22 enumerable: false,
23 configurable: true,
24 writable: true
tyoshino (SeeGerritForStatus) 2015/10/05 07:55:45 Could you teach me which part of the ECMA spec I s
25 });
26 });
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/streams/byte-length-queuing-strategy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698