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
7
namespace
webrtc {
class
CopyOnWriteBuffer
; }
8
namespace
webrtc {
class
DataChannelSink
; }
9
namespace
webrtc {
class
PriorityValue
; }
10
namespace
webrtc {
class
RTCError
; }
11
namespace
webrtc {
struct
SendDataParams
; }
12
// clang-format on
13
14
namespace
webrtc {
15
16
class
DataChannelTransportInterface
{
17
public
:
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
webrtc::CopyOnWriteBuffer
Definition
CopyOnWriteBuffer.h:11
webrtc::DataChannelSink
Definition
DataChannelSink.h:16
webrtc::DataChannelTransportInterface
Definition
DataChannelTransportInterface.h:16
webrtc::PriorityValue
Definition
PriorityValue.h:16
webrtc::RTCError
Definition
RTCError.h:10
buffer
Definition
buffer.h:5
webrtc::SendDataParams
Definition
SendDataParams.h:7
src
mc
external
webrtc
DataChannelTransportInterface.h
Generated on
for LeviLamina by
1.16.1