LeviLamina
Loading...
Searching...
No Matches
RTCStatsCollector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/Call.h"
7#include "mc/external/webrtc/DataChannelInterface.h"
8#include "mc/external/webrtc/RefCountInterface.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace webrtc { class Environment; }
14namespace webrtc { class PeerConnectionInternal; }
15namespace webrtc { class RTCStatsCollectorCallback; }
16namespace webrtc { class RTCStatsReport; }
17namespace webrtc { class RtpReceiverInternal; }
18namespace webrtc { class RtpSenderInternal; }
19namespace webrtc { class Timestamp; }
20namespace webrtc { struct TransportStats; }
21// clang-format on
22
23namespace webrtc {
24
25class RTCStatsCollector : public ::webrtc::RefCountInterface {
26public:
27 // RTCStatsCollector inner types declare
28 // clang-format off
30 struct InternalRecord;
31 class RequestInfo;
33 // clang-format on
34
35 // RTCStatsCollector inner types define
36 struct CertificateStatsPair {
37 public:
38 // member variables
39 // NOLINTBEGIN
42 // NOLINTEND
43
44 public:
45 // prevent constructor by default
46 CertificateStatsPair& operator=(CertificateStatsPair const&);
47 CertificateStatsPair(CertificateStatsPair const&);
48 CertificateStatsPair();
49
50 public:
51 // member functions
52 // NOLINTBEGIN
53 MCNAPI ::webrtc::RTCStatsCollector::CertificateStatsPair Copy() const;
54
56 // NOLINTEND
57
58 public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCNAPI void $dtor();
62 // NOLINTEND
63 };
64
65 struct InternalRecord {
66 public:
67 // member variables
68 // NOLINTBEGIN
72 // NOLINTEND
73
74 public:
75 // prevent constructor by default
76 InternalRecord& operator=(InternalRecord const&);
77 InternalRecord(InternalRecord const&);
78 InternalRecord();
79
80 public:
81 // member functions
82 // NOLINTBEGIN
84 // NOLINTEND
85
86 public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91 };
92
93 class RequestInfo {
94 public:
95 // RequestInfo inner types define
96 enum class FilterMode : int {
97 KAll = 0,
98 KSenderSelector = 1,
99 KReceiverSelector = 2,
100 };
101
102 public:
103 // member variables
104 // NOLINTBEGIN
109 // NOLINTEND
110
111 public:
112 // prevent constructor by default
113 RequestInfo& operator=(RequestInfo const&);
114 RequestInfo(RequestInfo const&);
115 RequestInfo();
116
117 public:
118 // member functions
119 // NOLINTBEGIN
120 MCNAPI ~RequestInfo();
121 // NOLINTEND
122
123 public:
124 // destructor thunk
125 // NOLINTBEGIN
126 MCNAPI void $dtor();
127 // NOLINTEND
128 };
129
130 struct RtpTransceiverStatsInfo {
131 public:
132 // member variables
133 // NOLINTBEGIN
140 // NOLINTEND
141
142 public:
143 // prevent constructor by default
144 RtpTransceiverStatsInfo& operator=(RtpTransceiverStatsInfo const&);
145 RtpTransceiverStatsInfo(RtpTransceiverStatsInfo const&);
146 RtpTransceiverStatsInfo();
147 };
148
149public:
150 // member variables
151 // NOLINTBEGIN
174 // NOLINTEND
175
176public:
177 // prevent constructor by default
178 RTCStatsCollector& operator=(RTCStatsCollector const&);
179 RTCStatsCollector(RTCStatsCollector const&);
180 RTCStatsCollector();
181
182public:
183 // virtual functions
184 // NOLINTBEGIN
185 virtual ~RTCStatsCollector() /*override*/;
186
187 virtual void
188 ProducePartialResultsOnSignalingThreadImpl(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport* partial_report);
189
190 virtual void ProducePartialResultsOnNetworkThreadImpl(
191 ::webrtc::Timestamp timestamp,
192 ::std::map<::std::string, ::webrtc::TransportStats> const& transport_stats_by_name,
193 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
194 ::webrtc::RTCStatsReport* partial_report
195 );
196 // NOLINTEND
197
198public:
199 // member functions
200 // NOLINTBEGIN
202
203 MCNAPI ::webrtc::scoped_refptr<::webrtc::RTCStatsReport> CreateReportFilteredBySelector(
204 bool filter_by_sender_selector,
208 );
209
212 ::std::vector<::webrtc::RTCStatsCollector::RequestInfo> requests
213 );
214
216
217 MCNAPI void GetStatsReport(
220 );
221
222 MCNAPI void GetStatsReport(
225 );
226
228
229 MCNAPI void MergeNetworkReport_s();
230
231 MCNAPI void OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state);
232
234
235 MCNAPI ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair>
237 ::std::map<::std::string, ::webrtc::TransportStats> const& transport_stats_by_name
238 );
239
241 ::webrtc::Timestamp timestamp,
243 bool spec_lifetime,
245 ) const;
246
248
250 ::webrtc::Timestamp timestamp,
251 ::std::map<::std::string, ::webrtc::TransportStats> const& transport_stats_by_name,
252 ::webrtc::Call::Stats const& call_stats,
254 ) const;
255
257
259 ::webrtc::Timestamp timestamp,
260 ::std::optional<::std::string> sctp_transport_name
261 );
262
264 ::webrtc::Timestamp timestamp,
265 ::std::vector<::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo> const& transceiver_stats_infos,
267 ) const;
268
270 ::webrtc::Timestamp timestamp,
271 ::std::map<::std::string, ::webrtc::TransportStats> const& transport_stats_by_name,
272 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
273 ::webrtc::Call::Stats const& call_stats,
275 ) const;
276
278 ::webrtc::Timestamp timestamp,
280 bool spec_lifetime,
282 ) const;
283
284 MCNAPI
286
288 // NOLINTEND
289
290public:
291 // static functions
292 // NOLINTBEGIN
293 MCNAPI static ::webrtc::scoped_refptr<::webrtc::RTCStatsCollector>
294 Create(::webrtc::PeerConnectionInternal* pc, ::webrtc::Environment const& env, int64 cache_lifetime_us);
295 // NOLINTEND
296
297public:
298 // constructor thunks
299 // NOLINTBEGIN
300 MCNAPI void* $ctor(::webrtc::PeerConnectionInternal* pc, ::webrtc::Environment const& env, int64 cache_lifetime_us);
301 // NOLINTEND
302
303public:
304 // destructor thunk
305 // NOLINTBEGIN
306 MCNAPI void $dtor();
307 // NOLINTEND
308
309public:
310 // virtual function thunks
311 // NOLINTBEGIN
313 ::webrtc::Timestamp timestamp,
314 ::webrtc::RTCStatsReport* partial_report
315 );
316
318 ::webrtc::Timestamp timestamp,
319 ::std::map<::std::string, ::webrtc::TransportStats> const& transport_stats_by_name,
320 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
321 ::webrtc::RTCStatsReport* partial_report
322 );
323
324
325 // NOLINTEND
326
327public:
328 // vftables
329 // NOLINTBEGIN
330 MCNAPI static void** $vftable();
331 // NOLINTEND
332};
333
334} // namespace webrtc
Definition Environment.h:7
Definition PeerConnectionInternal.h:28
Definition RTCStatsCollectorCallback.h:16
Definition RTCStatsCollector.h:93
static MCAPI ::webrtc::scoped_refptr<::webrtc::RTCStatsCollector > Create(::webrtc::PeerConnectionInternal *pc, ::webrtc::Environment const &env, int64 cache_lifetime_us)
MCAPI void ProduceTransportStats_n(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::webrtc::TransportStats > const &transport_stats_by_name, ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > const &transport_cert_stats, ::webrtc::Call::Stats const &call_stats, ::webrtc::RTCStatsReport *report) const
MCAPI void ProduceIceCandidateAndPairStats_n(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::webrtc::TransportStats > const &transport_stats_by_name, ::webrtc::Call::Stats const &call_stats, ::webrtc::RTCStatsReport *report) const
MCAPI void ProducePartialResultsOnNetworkThread(::webrtc::Timestamp timestamp, ::std::optional<::std::string > sctp_transport_name)
static MCAPI void ** $vftable()
MCAPI void DeliverCachedReport(::webrtc::scoped_refptr<::webrtc::RTCStatsReport const > cached_report, ::std::vector<::webrtc::RTCStatsCollector::RequestInfo > requests)
MCAPI ::webrtc::scoped_refptr<::webrtc::RTCStatsReport > CreateReportFilteredBySelector(bool filter_by_sender_selector, ::webrtc::scoped_refptr<::webrtc::RTCStatsReport const > report, ::webrtc::scoped_refptr<::webrtc::RtpSenderInternal > sender_selector, ::webrtc::scoped_refptr<::webrtc::RtpReceiverInternal > receiver_selector)
MCAPI void GetStatsReport(::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback > callback)
MCAPI void WaitForPendingRequest()
MCAPI void GetStatsReportInternal(::webrtc::RTCStatsCollector::RequestInfo request)
MCAPI void $ProducePartialResultsOnNetworkThreadImpl(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::webrtc::TransportStats > const &transport_stats_by_name, ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > const &transport_cert_stats, ::webrtc::RTCStatsReport *partial_report)
MCAPI void OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state)
MCAPI void ProduceMediaSourceStats_s(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport *report) const
MCAPI RTCStatsCollector(::webrtc::PeerConnectionInternal *pc, ::webrtc::Environment const &env, int64 cache_lifetime_us)
MCAPI void ProduceAudioRTPStreamStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo const &stats, bool spec_lifetime, ::webrtc::RTCStatsReport *report) const
MCAPI void ProduceRTPStreamStats_n(::webrtc::Timestamp timestamp, ::std::vector<::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo > const &transceiver_stats_infos, ::webrtc::RTCStatsReport *report) const
MCAPI void MergeNetworkReport_s()
MCAPI void ProduceDataChannelStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport *report) const
MCAPI void $ProducePartialResultsOnSignalingThreadImpl(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport *partial_report)
MCAPI void GetStatsReport(::webrtc::scoped_refptr<::webrtc::RtpReceiverInternal > selector, ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback > callback)
MCAPI void PrepareTransceiverStatsInfosAndCallStats_s_w_n()
MCAPI void ClearCachedStatsReport()
MCAPI ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > PrepareTransportCertificateStats_n(::std::map<::std::string, ::webrtc::TransportStats > const &transport_stats_by_name)
MCAPI void GetStatsReport(::webrtc::scoped_refptr<::webrtc::RtpSenderInternal > selector, ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback > callback)
MCAPI void * $ctor(::webrtc::PeerConnectionInternal *pc, ::webrtc::Environment const &env, int64 cache_lifetime_us)
MCAPI void ProduceVideoRTPStreamStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo const &stats, bool spec_lifetime, ::webrtc::RTCStatsReport *report) const
Definition RTCStatsReport.h:17
Definition RefCountInterface.h:10
Definition RtpReceiverInternal.h:18
Definition RtpSenderInternal.h:22
Definition Timestamp.h:15
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition Call.h:44
Definition RTCStatsCollector.h:36
MCAPI::webrtc::RTCStatsCollector::CertificateStatsPair Copy() const
Definition RTCStatsCollector.h:65
Definition RTCStatsCollector.h:130
Definition TransportStats.h:7