1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * https://streams.spec.whatwg.org/#qs
10 dictionary QueuingStrategy {
11 unrestricted double highWaterMark;
12 QueuingStrategySize size;
15 callback QueuingStrategySize = unrestricted double (optional any chunk);
17 dictionary QueuingStrategyInit {
18 required unrestricted double highWaterMark;
23 interface CountQueuingStrategy {
24 constructor(QueuingStrategyInit init);
26 readonly attribute unrestricted double highWaterMark;
29 readonly attribute Function size;
33 interface ByteLengthQueuingStrategy {
34 constructor(QueuingStrategyInit init);
36 readonly attribute unrestricted double highWaterMark;
39 readonly attribute Function size;