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 webrtc { class CopyOnWriteBuffer; }
8namespace webrtc { class DataChannelSink; }
9namespace webrtc { class PriorityValue; }
10namespace webrtc { class RTCError; }
11namespace webrtc { struct SendDataParams; }
12// clang-format on
13
14namespace webrtc {
15
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~DataChannelTransportInterface() = default;
21
22 virtual ::webrtc::RTCError OpenChannel(int channel_id, ::webrtc::PriorityValue priority) = 0;
23
24 virtual ::webrtc::RTCError
25 SendData(int channel_id, ::webrtc::SendDataParams const& params, ::webrtc::CopyOnWriteBuffer const& buffer) = 0;
26
27 virtual ::webrtc::RTCError CloseChannel(int channel_id) = 0;
28
29 virtual void SetDataSink(::webrtc::DataChannelSink* sink) = 0;
30
31 virtual bool IsReadyToSend() const = 0;
32
33 virtual uint64 buffered_amount(int channel_id) const = 0;
34
35 virtual uint64 buffered_amount_low_threshold(int channel_id) const = 0;
36
37 virtual void SetBufferedAmountLowThreshold(int channel_id, uint64 bytes) = 0;
38 // NOLINTEND
39};
40
41} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:16
Definition PriorityValue.h:16
Definition RTCError.h:10
Definition buffer.h:5
Definition SendDataParams.h:7