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
rtc {
class
CopyOnWriteBuffer
; }
8
namespace
webrtc {
class
DataChannelSink
; }
9
namespace
webrtc {
class
RTCError
; }
10
namespace
webrtc {
struct
SendDataParams
; }
11
// clang-format on
12
13
namespace
webrtc {
14
15
class
DataChannelTransportInterface
{
16
public
:
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
39
public
:
40
// virtual function thunks
41
// NOLINTBEGIN
42
43
// NOLINTEND
44
};
45
46
}
// namespace webrtc
rtc::CopyOnWriteBuffer
Definition
CopyOnWriteBuffer.h:11
webrtc::DataChannelSink
Definition
DataChannelSink.h:16
webrtc::DataChannelTransportInterface
Definition
DataChannelTransportInterface.h:15
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