LeviLamina
Loading...
Searching...
No Matches
JsepTransportController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/IceRole.h"
7#include "mc/external/rtc/SSLHandshakeError.h"
8#include "mc/external/rtc/SSLRole.h"
9#include "mc/external/webrtc/SdpType.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class Candidate; }
15namespace cricket { class ContentGroup; }
16namespace cricket { class ContentInfo; }
17namespace cricket { class DtlsTransportInternal; }
18namespace cricket { class IceTransportInternal; }
19namespace cricket { class JsepTransport; }
20namespace cricket { class PortAllocator; }
21namespace cricket { class SessionDescription; }
22namespace cricket { struct CandidatePairChangeEvent; }
23namespace cricket { struct IceCandidateErrorEvent; }
24namespace cricket { struct IceConfig; }
25namespace cricket { struct JsepTransportDescription; }
26namespace cricket { struct TransportInfo; }
27namespace cricket { struct TransportStats; }
28namespace rtc { class CopyOnWriteBuffer; }
29namespace rtc { class PacketTransportInternal; }
30namespace rtc { class RTCCertificate; }
31namespace rtc { class SSLCertChain; }
32namespace rtc { class Thread; }
33namespace webrtc { class AsyncDnsResolverFactoryInterface; }
34namespace webrtc { class DataChannelTransportInterface; }
35namespace webrtc { class DtlsSrtpTransport; }
36namespace webrtc { class DtlsTransport; }
37namespace webrtc { class Environment; }
38namespace webrtc { class IceTransportInterface; }
39namespace webrtc { class RTCError; }
40namespace webrtc { class RtpPacketReceived; }
41namespace webrtc { class RtpTransport; }
42namespace webrtc { class RtpTransportInternal; }
43namespace webrtc { class SctpTransport; }
44// clang-format on
45
46namespace webrtc {
47
49public:
50 // JsepTransportController inner types declare
51 // clang-format off
52 struct Config;
53 // clang-format on
54
55 // JsepTransportController inner types define
56 struct Config {
57 public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI ~Config();
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCAPI void $dtor();
67 // NOLINTEND
68 };
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI ::webrtc::RTCError AddRemoteCandidates(::std::string const&, ::std::vector<::cricket::Candidate> const&);
74
75 MCAPI ::webrtc::RTCError
76 ApplyDescription_n(bool, ::webrtc::SdpType, ::cricket::SessionDescription const*, ::cricket::SessionDescription const*);
77
78 MCAPI ::std::unique_ptr<::webrtc::DtlsSrtpTransport>
79 CreateDtlsSrtpTransport(::std::string const&, ::cricket::DtlsTransportInternal*, ::cricket::DtlsTransportInternal*);
80
81 MCAPI ::std::unique_ptr<::cricket::DtlsTransportInternal>
82 CreateDtlsTransport(::cricket::ContentInfo const&, ::cricket::IceTransportInternal*);
83
84 MCAPI ::webrtc::scoped_refptr<::webrtc::IceTransportInterface> CreateIceTransport(::std::string const&, bool);
85
86 MCAPI ::cricket::JsepTransportDescription CreateJsepTransportDescription(
89 ::std::vector<int> const&,
90 int
91 );
92
93 MCAPI ::std::unique_ptr<::webrtc::RtpTransport>
94 CreateUnencryptedRtpTransport(::std::string const&, ::rtc::PacketTransportInternal*, ::rtc::PacketTransportInternal*);
95
96 MCAPI void DestroyAllJsepTransports_n();
97
98 MCAPI ::cricket::IceRole
99 DetermineIceRole(::cricket::JsepTransport*, ::cricket::TransportInfo const&, ::webrtc::SdpType, bool);
100
101 MCAPI ::std::vector<::cricket::DtlsTransportInternal*> GetActiveDtlsTransports();
102
103 MCAPI ::webrtc::DataChannelTransportInterface* GetDataChannelTransport(::std::string const&) const;
104
105 MCAPI ::std::optional<::rtc::SSLRole> GetDtlsRole(::std::string const&) const;
106
107 MCAPI ::cricket::DtlsTransportInternal* GetDtlsTransport(::std::string const&);
108
109 MCAPI ::std::vector<::cricket::DtlsTransportInternal*> GetDtlsTransports();
110
111 MCAPI ::std::vector<int> GetEncryptedHeaderExtensionIds(::cricket::ContentInfo const&);
112
113 MCAPI ::cricket::JsepTransport const* GetJsepTransportByName(::std::string const&) const;
114
115 MCAPI ::cricket::JsepTransport* GetJsepTransportByName(::std::string const&);
116
117 MCAPI ::cricket::JsepTransport const* GetJsepTransportForMid(::std::string const&) const;
118
119 MCAPI ::cricket::JsepTransport const* GetJsepTransportForMid(::std::string_view) const;
120
121 MCAPI ::cricket::JsepTransport* GetJsepTransportForMid(::std::string const&);
122
123 MCAPI ::webrtc::scoped_refptr<::rtc::RTCCertificate> GetLocalCertificate(::std::string const&) const;
124
125 MCAPI ::std::unique_ptr<::rtc::SSLCertChain> GetRemoteSSLCertChain(::std::string const&) const;
126
127 MCAPI int GetRtpAbsSendTimeHeaderExtensionId(::cricket::ContentInfo const&);
128
129 MCAPI ::webrtc::RtpTransportInternal* GetRtpTransport(::std::string_view) const;
130
131 MCAPI ::webrtc::scoped_refptr<::webrtc::SctpTransport> GetSctpTransport(::std::string const&) const;
132
133 MCAPI bool GetStats(::std::string const&, ::cricket::TransportStats*);
134
135 MCAPI bool HandleBundledContent(::cricket::ContentInfo const&, ::cricket::ContentGroup const&);
136
137 MCAPI void HandleRejectedContent(::cricket::ContentInfo const&);
138
145 );
146
147 MCAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransport> LookupDtlsTransportByMid(::std::string const&);
148
149 MCAPI ::webrtc::RTCError
150 MaybeCreateJsepTransport(bool, ::cricket::ContentInfo const&, ::cricket::SessionDescription const&);
151
152 MCAPI void MaybeStartGathering();
153
154 MCAPI ::std::map<::cricket::ContentGroup const*, ::std::vector<int>>
155 MergeEncryptedHeaderExtensionIdsForBundles(::cricket::SessionDescription const*);
156
157 MCAPI bool NeedsIceRestart(::std::string const&) const;
158
159 MCAPI void OnDtlsHandshakeError(::rtc::SSLHandshakeError);
160
161 MCAPI void OnRtcpPacketReceived_n(::rtc::CopyOnWriteBuffer*, int64);
162
163 MCAPI void OnTransportCandidateError_n(::cricket::IceTransportInternal*, ::cricket::IceCandidateErrorEvent const&);
164
165 MCAPI void OnTransportCandidateGathered_n(::cricket::IceTransportInternal*, ::cricket::Candidate const&);
166
167 MCAPI void OnTransportCandidatePairChanged_n(::cricket::CandidatePairChangeEvent const&);
168
169 MCAPI void
170 OnTransportCandidatesRemoved_n(::cricket::IceTransportInternal*, ::std::vector<::cricket::Candidate> const&);
171
172 MCAPI bool OnTransportChanged(::std::string const&, ::cricket::JsepTransport*);
173
174 MCAPI void OnTransportGatheringState_n(::cricket::IceTransportInternal*);
175
176 MCAPI void OnTransportReceivingState_n(::rtc::PacketTransportInternal*);
177
178 MCAPI void OnTransportRoleConflict_n(::cricket::IceTransportInternal*);
179
180 MCAPI void OnTransportStateChanged_n(::cricket::IceTransportInternal*);
181
182 MCAPI void OnTransportWritableState_n(::rtc::PacketTransportInternal*);
183
184 MCAPI void OnUnDemuxableRtpPacketReceived_n(::webrtc::RtpPacketReceived const&);
185
186 MCAPI ::webrtc::RTCError RemoveRemoteCandidates(::std::vector<::cricket::Candidate> const&);
187
188 MCAPI ::webrtc::RTCError RollbackTransports();
189
190 MCAPI void SetActiveResetSrtpParams(bool);
191
192 MCAPI void SetIceConfig(::cricket::IceConfig const&);
193
194 MCAPI void SetIceRole_n(::cricket::IceRole);
195
196 MCAPI bool SetLocalCertificate(::webrtc::scoped_refptr<::rtc::RTCCertificate> const&);
197
198 MCAPI ::webrtc::RTCError
199 SetLocalDescription(::webrtc::SdpType, ::cricket::SessionDescription const*, ::cricket::SessionDescription const*);
200
201 MCAPI void SetNeedsIceRestartFlag();
202
203 MCAPI ::webrtc::RTCError
204 SetRemoteDescription(::webrtc::SdpType, ::cricket::SessionDescription const*, ::cricket::SessionDescription const*);
205
206 MCAPI void UpdateAggregateStates_n();
207
208 MCAPI ::webrtc::RTCError
209 ValidateAndMaybeUpdateBundleGroups(bool, ::webrtc::SdpType, ::cricket::SessionDescription const*, ::cricket::SessionDescription const*);
210
211 MCAPI ::webrtc::RTCError ValidateContent(::cricket::ContentInfo const&);
212 // NOLINTEND
213
214public:
215 // constructor thunks
216 // NOLINTBEGIN
217 MCAPI void* $ctor(
223 );
224 // NOLINTEND
225
226public:
227 // vftables
228 // NOLINTBEGIN
229 MCAPI static void** $vftable();
230 // NOLINTEND
231};
232
233} // namespace webrtc
Definition Candidate.h:15
Definition ContentGroup.h:7
Definition ContentInfo.h:12
Definition DtlsTransportInternal.h:7
Definition IceTransportInternal.h:7
Definition JsepTransport.h:32
Definition PortAllocator.h:25
Definition SessionDescription.h:18
Definition CopyOnWriteBuffer.h:11
Definition PacketTransportInternal.h:15
Definition Thread.h:20
Definition AsyncDnsResolverFactoryInterface.h:16
Definition Environment.h:7
Definition JsepTransportController.h:48
Definition RtpPacketReceived.h:16
Definition scoped_refptr.h:8
Definition CandidatePairChangeEvent.h:7
Definition IceCandidateErrorEvent.h:7
Definition IceConfig.h:10
Definition TransportInfo.h:7
Definition TransportStats.h:7
Definition JsepTransportController.h:56