LeviLamina
Loading...
Searching...
No Matches
DataChannelTransportInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class CopyOnWriteBuffer; }
8namespace webrtc { class DataChannelSink; }
9namespace webrtc { class RTCError; }
10namespace webrtc { struct SendDataParams; }
11// clang-format on
12
13namespace webrtc {
14
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 // vIndex: 0
20 virtual ~DataChannelTransportInterface() = default;
21
22 // vIndex: 1
23 virtual ::webrtc::RTCError OpenChannel(int) = 0;
24
25 // vIndex: 2
26 virtual ::webrtc::RTCError SendData(int, ::webrtc::SendDataParams const&, ::rtc::CopyOnWriteBuffer const&) = 0;
27
28 // vIndex: 3
29 virtual ::webrtc::RTCError CloseChannel(int) = 0;
30
31 // vIndex: 4
32 virtual void SetDataSink(::webrtc::DataChannelSink*) = 0;
33
34 // vIndex: 5
35 virtual bool IsReadyToSend() const = 0;
36
37 // vIndex: 6
38 virtual uint64 buffered_amount(int) const = 0;
39
40 // vIndex: 7
41 virtual uint64 buffered_amount_low_threshold(int) const = 0;
42
43 // vIndex: 8
44 virtual void SetBufferedAmountLowThreshold(int, uint64) = 0;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50
51 // NOLINTEND
52};
53
54} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:15
Definition SendDataParams.h:7