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 cricket { struct TransportStats; }
14namespace webrtc { class PeerConnectionInternal; }
15namespace webrtc { class RTCStatsCollectorCallback; }
16namespace webrtc { class RTCStatsReport; }
17namespace webrtc { class RtpReceiverInternal; }
18namespace webrtc { class RtpSenderInternal; }
19namespace webrtc { class Timestamp; }
20// clang-format on
21
22namespace webrtc {
23
24class RTCStatsCollector : public ::webrtc::RefCountInterface {
25public:
26 // RTCStatsCollector inner types declare
27 // clang-format off
29 struct InternalRecord;
30 class RequestInfo;
32 // clang-format on
33
34 // RTCStatsCollector inner types define
35 struct CertificateStatsPair {
36 public:
37 // member variables
38 // NOLINTBEGIN
41 // NOLINTEND
42
43 public:
44 // prevent constructor by default
45 CertificateStatsPair& operator=(CertificateStatsPair const&);
46 CertificateStatsPair(CertificateStatsPair const&);
47 CertificateStatsPair();
48
49 public:
50 // member functions
51 // NOLINTBEGIN
52 MCNAPI ::webrtc::RTCStatsCollector::CertificateStatsPair Copy() const;
53
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62 };
63
64 struct InternalRecord {
65 public:
66 // member variables
67 // NOLINTBEGIN
71 // NOLINTEND
72
73 public:
74 // prevent constructor by default
75 InternalRecord& operator=(InternalRecord const&);
76 InternalRecord(InternalRecord const&);
77 InternalRecord();
78
79 public:
80 // member functions
81 // NOLINTBEGIN
83 // NOLINTEND
84
85 public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCNAPI void $dtor();
89 // NOLINTEND
90 };
91
92 class RequestInfo {
93 public:
94 // RequestInfo inner types define
95 enum class FilterMode : int {
96 KAll = 0,
97 KSenderSelector = 1,
98 KReceiverSelector = 2,
99 };
100
101 public:
102 // member variables
103 // NOLINTBEGIN
108 // NOLINTEND
109
110 public:
111 // prevent constructor by default
112 RequestInfo& operator=(RequestInfo const&);
113 RequestInfo(RequestInfo const&);
114 RequestInfo();
115
116 public:
117 // member functions
118 // NOLINTBEGIN
119 MCNAPI ~RequestInfo();
120 // NOLINTEND
121
122 public:
123 // destructor thunk
124 // NOLINTBEGIN
125 MCNAPI void $dtor();
126 // NOLINTEND
127 };
128
129 struct RtpTransceiverStatsInfo {
130 public:
131 // member variables
132 // NOLINTBEGIN
139 // NOLINTEND
140
141 public:
142 // prevent constructor by default
143 RtpTransceiverStatsInfo& operator=(RtpTransceiverStatsInfo const&);
144 RtpTransceiverStatsInfo(RtpTransceiverStatsInfo const&);
145 RtpTransceiverStatsInfo();
146 };
147
148public:
149 // member variables
150 // NOLINTBEGIN
170 // NOLINTEND
171
172public:
173 // prevent constructor by default
174 RTCStatsCollector& operator=(RTCStatsCollector const&);
175 RTCStatsCollector(RTCStatsCollector const&);
176 RTCStatsCollector();
177
178public:
179 // virtual functions
180 // NOLINTBEGIN
181 virtual ~RTCStatsCollector() /*override*/;
182
183 virtual void
184 ProducePartialResultsOnSignalingThreadImpl(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport* partial_report);
185
186 virtual void ProducePartialResultsOnNetworkThreadImpl(
187 ::webrtc::Timestamp timestamp,
188 ::std::map<::std::string, ::cricket::TransportStats> const& transport_stats_by_name,
189 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
190 ::webrtc::RTCStatsReport* partial_report
191 );
192 // NOLINTEND
193
194public:
195 // member functions
196 // NOLINTBEGIN
198
199 MCNAPI ::webrtc::scoped_refptr<::webrtc::RTCStatsReport> CreateReportFilteredBySelector(
200 bool filter_by_sender_selector,
204 );
205
208 ::std::vector<::webrtc::RTCStatsCollector::RequestInfo> requests
209 );
210
212
213 MCNAPI void GetStatsReport(
216 );
217
218 MCNAPI void GetStatsReport(
221 );
222
224
225 MCNAPI void MergeNetworkReport_s();
226
227 MCNAPI void OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state);
228
230
231 MCNAPI ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair>
233 ::std::map<::std::string, ::cricket::TransportStats> const& transport_stats_by_name
234 );
235
237 ::webrtc::Timestamp timestamp,
240 ) const;
241
243
245 ::webrtc::Timestamp timestamp,
246 ::std::map<::std::string, ::cricket::TransportStats> const& transport_stats_by_name,
247 ::webrtc::Call::Stats const& call_stats,
249 ) const;
250
252
254 ::webrtc::Timestamp timestamp,
255 ::std::optional<::std::string> sctp_transport_name
256 );
257
259 ::webrtc::Timestamp timestamp,
260 ::std::map<::std::string, ::cricket::TransportStats> const& transport_stats_by_name,
261 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
263 ) const;
264
266 ::webrtc::Timestamp timestamp,
269 ) const;
270
272 // NOLINTEND
273
274public:
275 // static functions
276 // NOLINTBEGIN
277 MCNAPI static ::webrtc::scoped_refptr<::webrtc::RTCStatsCollector>
278 Create(::webrtc::PeerConnectionInternal* pc, int64 cache_lifetime_us);
279 // NOLINTEND
280
281public:
282 // destructor thunk
283 // NOLINTBEGIN
284 MCNAPI void $dtor();
285 // NOLINTEND
286
287public:
288 // virtual function thunks
289 // NOLINTBEGIN
291 ::webrtc::Timestamp timestamp,
292 ::webrtc::RTCStatsReport* partial_report
293 );
294
296 ::webrtc::Timestamp timestamp,
297 ::std::map<::std::string, ::cricket::TransportStats> const& transport_stats_by_name,
298 ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair> const& transport_cert_stats,
299 ::webrtc::RTCStatsReport* partial_report
300 );
301
302
303 // NOLINTEND
304
305public:
306 // vftables
307 // NOLINTBEGIN
308 MCNAPI static void** $vftable();
309 // NOLINTEND
310};
311
312} // namespace webrtc
Definition PeerConnectionInternal.h:28
Definition RTCStatsCollectorCallback.h:16
Definition RTCStatsCollector.h:92
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 void ProduceTransportStats_n(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::cricket::TransportStats > const &transport_stats_by_name, ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > const &transport_cert_stats, ::webrtc::RTCStatsReport *report) const
MCAPI ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > PrepareTransportCertificateStats_n(::std::map<::std::string, ::cricket::TransportStats > const &transport_stats_by_name)
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 ProduceVideoRTPStreamStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo const &stats, ::webrtc::RTCStatsReport *report) const
MCAPI void OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state)
MCAPI void ProduceMediaSourceStats_s(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport *report) const
MCAPI void ProduceIceCandidateAndPairStats_n(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::cricket::TransportStats > const &transport_stats_by_name, ::webrtc::Call::Stats const &call_stats, ::webrtc::RTCStatsReport *report) const
static MCAPI ::webrtc::scoped_refptr<::webrtc::RTCStatsCollector > Create(::webrtc::PeerConnectionInternal *pc, int64 cache_lifetime_us)
MCAPI void MergeNetworkReport_s()
MCAPI void ProduceDataChannelStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsReport *report) const
MCAPI void ProduceAudioRTPStreamStats_n(::webrtc::Timestamp timestamp, ::webrtc::RTCStatsCollector::RtpTransceiverStatsInfo const &stats, ::webrtc::RTCStatsReport *report) const
MCAPI void $ProducePartialResultsOnNetworkThreadImpl(::webrtc::Timestamp timestamp, ::std::map<::std::string, ::cricket::TransportStats > const &transport_stats_by_name, ::std::map<::std::string, ::webrtc::RTCStatsCollector::CertificateStatsPair > const &transport_cert_stats, ::webrtc::RTCStatsReport *partial_report)
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 void GetStatsReport(::webrtc::scoped_refptr<::webrtc::RtpSenderInternal > selector, ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback > callback)
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 TransportStats.h:7
Definition Alias.h:14
Definition Call.h:43
Definition RTCStatsCollector.h:35
MCAPI::webrtc::RTCStatsCollector::CertificateStatsPair Copy() const
Definition RTCStatsCollector.h:64
Definition RTCStatsCollector.h:129