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 virtual ~DataChannelTransportInterface() = default;
20
21 virtual ::webrtc::RTCError OpenChannel(int) = 0;
22
23 virtual ::webrtc::RTCError SendData(int, ::webrtc::SendDataParams const&, ::rtc::CopyOnWriteBuffer const&) = 0;
24
25 virtual ::webrtc::RTCError CloseChannel(int) = 0;
26
27 virtual void SetDataSink(::webrtc::DataChannelSink*) = 0;
28
29 virtual bool IsReadyToSend() const = 0;
30
31 virtual uint64 buffered_amount(int) const = 0;
32
33 virtual uint64 buffered_amount_low_threshold(int) const = 0;
34
35 virtual void SetBufferedAmountLowThreshold(int, uint64) = 0;
36 // NOLINTEND
37
38public:
39 // virtual function thunks
40 // NOLINTBEGIN
41
42 // NOLINTEND
43};
44
45} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:15
Definition RTCError.h:10
Definition SendDataParams.h:7