LeviLamina
Loading...
Searching...
No Matches
LegacyStatsCollector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/LegacyStatsCollectorInterface.h"
7#include "mc/external/webrtc/PeerConnectionInterface.h"
8#include "mc/external/webrtc/RtpTransceiverProxyWithInternal.h"
9#include "mc/external/webrtc/StatsReport.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class CandidateStats; }
15namespace cricket { struct ConnectionInfo; }
16namespace cricket { struct TransportStats; }
17namespace rtc { struct SSLCertificateStats; }
18namespace webrtc { class AudioTrackInterface; }
19namespace webrtc { class MediaStreamInterface; }
20namespace webrtc { class MediaStreamTrackInterface; }
21namespace webrtc { class PeerConnectionInternal; }
22namespace webrtc { class RtpTransceiver; }
23namespace webrtc { class StatsCollection; }
24namespace webrtc { class StatsReport; }
25// clang-format on
26
27namespace webrtc {
28
30public:
31 // LegacyStatsCollector inner types declare
32 // clang-format off
33 struct SessionStats;
34 struct TransportStats;
35 // clang-format on
36
37 // LegacyStatsCollector inner types define
39 public:
40 // member variables
41 // NOLINTBEGIN
46 // NOLINTEND
47
48 public:
49 // prevent constructor by default
50 TransportStats& operator=(TransportStats const&);
53
54 public:
55 // member functions
56 // NOLINTBEGIN
57 MCNAPI TransportStats(::std::string transport_name, ::cricket::TransportStats transport_stats);
58 // NOLINTEND
59
60 public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCNAPI void* $ctor(::std::string transport_name, ::cricket::TransportStats transport_stats);
64 // NOLINTEND
65 };
66
67 struct SessionStats {
68 public:
69 // member variables
70 // NOLINTBEGIN
74 // NOLINTEND
75
76 public:
77 // prevent constructor by default
78 SessionStats& operator=(SessionStats const&);
80
81 public:
82 // member functions
83 // NOLINTBEGIN
84 MCNAPI SessionStats();
85
86 MCNAPI ~SessionStats();
87 // NOLINTEND
88
89 public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCNAPI void* $ctor();
93 // NOLINTEND
94
95 public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100 };
101
102public:
103 // member variables
104 // NOLINTBEGIN
112 // NOLINTEND
113
114public:
115 // prevent constructor by default
119
120public:
121 // virtual functions
122 // NOLINTBEGIN
123 // vIndex: 0
124 virtual ~LegacyStatsCollector() /*override*/;
125
126 // vIndex: 1
127 virtual void AddLocalAudioTrack(::webrtc::AudioTrackInterface* audio_track, uint ssrc) /*override*/;
128
129 // vIndex: 2
130 virtual void RemoveLocalAudioTrack(::webrtc::AudioTrackInterface* audio_track, uint ssrc) /*override*/;
131
132 // vIndex: 3
133 virtual void GetStats(
135 ::std::vector<::webrtc::StatsReport const*>* reports
136 ) /*override*/;
137
138 // vIndex: 4
139 virtual double GetTimeNow();
140 // NOLINTEND
141
142public:
143 // member functions
144 // NOLINTBEGIN
145 MCNAPI ::webrtc::StatsReport* AddCandidateReport(::cricket::CandidateStats const& candidate_stats, bool local);
146
147 MCNAPI ::webrtc::StatsReport* AddCertificateReports(::std::unique_ptr<::rtc::SSLCertificateStats> cert_stats);
148
149 MCNAPI ::webrtc::StatsReport* AddConnectionInfoReport(
150 ::std::string const& content_name,
151 int component,
152 int connection_id,
154 ::cricket::ConnectionInfo const& info
155 );
156
158
160
161 MCNAPI void ExtractBweInfo();
162
164
165 MCNAPI void ExtractMediaInfo(::std::map<::std::string, ::std::string> const& transport_names_by_mid);
166
167 MCNAPI void ExtractSenderInfo();
168
169 MCNAPI ::std::map<::std::string, ::std::string> ExtractSessionAndDataInfo();
170
171 MCNAPI ::webrtc::LegacyStatsCollector::SessionStats ExtractSessionInfo_n(
172 ::std::vector<::webrtc::scoped_refptr<
174 ::std::optional<::std::string> sctp_transport_name,
175 ::std::optional<::std::string> sctp_mid
176 );
177
179
180 MCNAPI ::webrtc::StatsReport* GetReport(
181 ::webrtc::StatsReport::StatsType const& type,
182 ::std::string const& id,
183 ::webrtc::StatsReport::Direction direction
184 );
185
186 MCNAPI void InvalidateCache();
187
188 MCNAPI bool IsValidTrack(::std::string const& track_id);
189
191
192 MCNAPI ::webrtc::StatsReport* PrepareADMReport();
193
194 MCNAPI ::webrtc::StatsReport* PrepareReport(
195 bool local,
196 uint ssrc,
197 ::std::string const& track_id,
199 ::webrtc::StatsReport::Direction direction
200 );
201
204 ::webrtc::StatsReport* report,
205 bool has_remote_tracks
206 );
207
208 MCNAPI void UpdateStats(::webrtc::PeerConnectionInterface::StatsOutputLevel level);
209
210 MCNAPI void UpdateStatsFromExistingLocalAudioTracks(bool has_remote_tracks);
211
212 MCNAPI void UpdateTrackReports();
213 // NOLINTEND
214
215public:
216 // constructor thunks
217 // NOLINTBEGIN
219 // NOLINTEND
220
221public:
222 // destructor thunk
223 // NOLINTBEGIN
224 MCNAPI void $dtor();
225 // NOLINTEND
226
227public:
228 // virtual function thunks
229 // NOLINTBEGIN
230 MCNAPI void $AddLocalAudioTrack(::webrtc::AudioTrackInterface* audio_track, uint ssrc);
231
232 MCNAPI void $RemoveLocalAudioTrack(::webrtc::AudioTrackInterface* audio_track, uint ssrc);
233
234 MCNAPI void
235 $GetStats(::webrtc::MediaStreamTrackInterface* track, ::std::vector<::webrtc::StatsReport const*>* reports);
236
237 MCNAPI double $GetTimeNow();
238 // NOLINTEND
239
240public:
241 // vftables
242 // NOLINTBEGIN
243 MCNAPI static void** $vftable();
244 // NOLINTEND
245};
246
247} // namespace webrtc
Definition CandidateStats.h:7
Definition AudioTrackInterface.h:18
Definition LegacyStatsCollectorInterface.h:14
Definition LegacyStatsCollector.h:29
MCAPI::webrtc::StatsReport * PrepareReport(bool local, uint ssrc, ::std::string const &track_id, ::webrtc::scoped_refptr<::webrtc::StatsReport::IdBase > const &transport_id, ::webrtc::StatsReport::Direction direction)
MCAPI::webrtc::StatsReport * AddCandidateReport(::cricket::CandidateStats const &candidate_stats, bool local)
MCAPI void $GetStats(::webrtc::MediaStreamTrackInterface *track, ::std::vector<::webrtc::StatsReport const * > *reports)
MCAPI void UpdateStatsFromExistingLocalAudioTracks(bool has_remote_tracks)
MCAPI LegacyStatsCollector(::webrtc::PeerConnectionInternal *pc)
MCAPI void ExtractMediaInfo(::std::map<::std::string, ::std::string > const &transport_names_by_mid)
MCAPI ::std::map<::std::string, ::std::string > ExtractSessionAndDataInfo()
MCAPI void * $ctor(::webrtc::PeerConnectionInternal *pc)
MCAPI::webrtc::StatsReport * PrepareADMReport()
MCAPI void UpdateReportFromAudioTrack(::webrtc::AudioTrackInterface *track, ::webrtc::StatsReport *report, bool has_remote_tracks)
MCAPI::webrtc::StatsReport * AddConnectionInfoReport(::std::string const &content_name, int component, int connection_id, ::webrtc::scoped_refptr<::webrtc::StatsReport::IdBase > const &channel_report_id, ::cricket::ConnectionInfo const &info)
MCAPI void $RemoveLocalAudioTrack(::webrtc::AudioTrackInterface *audio_track, uint ssrc)
static MCAPI void ** $vftable()
MCAPI void ExtractSessionInfo_s(::webrtc::LegacyStatsCollector::SessionStats &session_stats)
MCAPI void $AddLocalAudioTrack(::webrtc::AudioTrackInterface *audio_track, uint ssrc)
MCAPI void ExtractDataInfo_n(::webrtc::StatsCollection *reports)
MCAPI::webrtc::LegacyStatsCollector::SessionStats ExtractSessionInfo_n(::std::vector<::webrtc::scoped_refptr< ::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > > const &transceivers, ::std::optional<::std::string > sctp_transport_name, ::std::optional<::std::string > sctp_mid)
MCAPI bool IsValidTrack(::std::string const &track_id)
MCAPI void UpdateStats(::webrtc::PeerConnectionInterface::StatsOutputLevel level)
MCAPI::webrtc::StatsReport * GetReport(::webrtc::StatsReport::StatsType const &type, ::std::string const &id, ::webrtc::StatsReport::Direction direction)
MCAPI void AddTrack(::webrtc::MediaStreamTrackInterface *track)
MCAPI void AddStream(::webrtc::MediaStreamInterface *stream)
MCAPI::webrtc::StatsReport * AddCertificateReports(::std::unique_ptr<::rtc::SSLCertificateStats > cert_stats)
Definition MediaStreamInterface.h:18
Definition MediaStreamTrackInterface.h:11
Definition PeerConnectionInternal.h:28
Definition RtpTransceiverProxyWithInternal.h:8
Definition StatsCollection.h:16
Definition StatsReport.h:11
Definition scoped_refptr.h:8
Definition ConnectionInfo.h:7
Definition TransportStats.h:7
Definition Alias.h:14
Definition LegacyStatsCollector.h:67
Definition LegacyStatsCollector.h:38
MCAPI void * $ctor(::std::string transport_name, ::cricket::TransportStats transport_stats)
MCAPI TransportStats(::std::string transport_name, ::cricket::TransportStats transport_stats)