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