summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/rtc_quic_stream.idl
blob: 945d6b4af5d7e407265a31e62d094e6c99690d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3c.github.io/webrtc-quic/#rtcquicstreamstate*
enum RTCQuicStreamState {
    "new",
    "opening",
    "open",
    "closing",
    "closed",
};

// https://w3c.github.io/webrtc-quic/#quicstream*
[
   Exposed=Window,
   RuntimeEnabled=RTCQuicTransport
] interface RTCQuicStream : EventTarget {
    readonly attribute RTCQuicTransport transport;
    readonly attribute RTCQuicStreamState state;
    readonly attribute unsigned long readBufferedAmount;
    readonly attribute unsigned long writeBufferedAmount;
    void finish();
    void reset();
    attribute EventHandler onstatechange;
    // TODO(crbug.com/868068): Implement remaining methods, attributes, and events.
};