| Index: third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js
|
| diff --git a/third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js b/third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91584d7c3d48feea691d7e464265b9d8282f1451
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js
|
| @@ -0,0 +1,26 @@
|
| +(function(global, binding, v8) {
|
| + 'use strict';
|
| +
|
| + const defineProperty = global.Object.defineProperty;
|
| +
|
| + class ByteLengthQueuingStrategy {
|
| + constructor(options) {
|
| + defineProperty(this, 'highWaterMark', {
|
| + value: options.highWaterMark,
|
| + enumerable: true,
|
| + configurable: true,
|
| + writable: true
|
| + });
|
| + }
|
| + size(chunk) {
|
| + return chunk.byteLength;
|
| + }
|
| + }
|
| +
|
| + defineProperty(global, 'ByteLengthQueuingStrategy', {
|
| + value: ByteLengthQueuingStrategy,
|
| + enumerable: false,
|
| + configurable: true,
|
| + writable: true
|
| + });
|
| +});
|
|
|