Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/pc/rtcstatscollector.h

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Comments addressed, generalized InvokeOnWorker(). Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_PC_RTCSTATSCOLLECTOR_H_ 11 #ifndef WEBRTC_PC_RTCSTATSCOLLECTOR_H_
12 #define WEBRTC_PC_RTCSTATSCOLLECTOR_H_ 12 #define WEBRTC_PC_RTCSTATSCOLLECTOR_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <set> 16 #include <set>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/api/stats/rtcstats_objects.h" 19 #include "webrtc/api/stats/rtcstats_objects.h"
20 #include "webrtc/api/stats/rtcstatscollectorcallback.h" 20 #include "webrtc/api/stats/rtcstatscollectorcallback.h"
21 #include "webrtc/api/stats/rtcstatsreport.h" 21 #include "webrtc/api/stats/rtcstatsreport.h"
22 #include "webrtc/base/asyncinvoker.h" 22 #include "webrtc/base/asyncinvoker.h"
23 #include "webrtc/base/optional.h" 23 #include "webrtc/base/optional.h"
24 #include "webrtc/base/refcount.h" 24 #include "webrtc/base/refcount.h"
25 #include "webrtc/base/scoped_ref_ptr.h" 25 #include "webrtc/base/scoped_ref_ptr.h"
26 #include "webrtc/base/sigslot.h" 26 #include "webrtc/base/sigslot.h"
27 #include "webrtc/base/sslidentity.h" 27 #include "webrtc/base/sslidentity.h"
28 #include "webrtc/base/timeutils.h" 28 #include "webrtc/base/timeutils.h"
29 #include "webrtc/call/call.h"
29 #include "webrtc/media/base/mediachannel.h" 30 #include "webrtc/media/base/mediachannel.h"
30 #include "webrtc/pc/datachannel.h" 31 #include "webrtc/pc/datachannel.h"
31 #include "webrtc/pc/trackmediainfomap.h" 32 #include "webrtc/pc/trackmediainfomap.h"
32 33
33 namespace cricket { 34 namespace cricket {
34 class Candidate; 35 class Candidate;
35 } // namespace cricket 36 } // namespace cricket
36 37
37 namespace rtc { 38 namespace rtc {
38 class SSLCertificate; 39 class SSLCertificate;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 RTCStatsReport* report) const; 98 RTCStatsReport* report) const;
98 // Produces |RTCCodecStats|. 99 // Produces |RTCCodecStats|.
99 void ProduceCodecStats_n( 100 void ProduceCodecStats_n(
100 int64_t timestamp_us, const TrackMediaInfoMap& track_media_info_map, 101 int64_t timestamp_us, const TrackMediaInfoMap& track_media_info_map,
101 RTCStatsReport* report) const; 102 RTCStatsReport* report) const;
102 // Produces |RTCDataChannelStats|. 103 // Produces |RTCDataChannelStats|.
103 void ProduceDataChannelStats_s( 104 void ProduceDataChannelStats_s(
104 int64_t timestamp_us, RTCStatsReport* report) const; 105 int64_t timestamp_us, RTCStatsReport* report) const;
105 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. 106 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|.
106 void ProduceIceCandidateAndPairStats_n( 107 void ProduceIceCandidateAndPairStats_n(
107 int64_t timestamp_us, const SessionStats& session_stats, 108 int64_t timestamp_us,
109 const SessionStats& session_stats,
108 const cricket::VideoMediaInfo* video_media_info, 110 const cricket::VideoMediaInfo* video_media_info,
111 const Call::Stats& call_stats,
109 RTCStatsReport* report) const; 112 RTCStatsReport* report) const;
110 // Produces |RTCMediaStreamStats| and |RTCMediaStreamTrackStats|. 113 // Produces |RTCMediaStreamStats| and |RTCMediaStreamTrackStats|.
111 void ProduceMediaStreamAndTrackStats_s( 114 void ProduceMediaStreamAndTrackStats_s(
112 int64_t timestamp_us, RTCStatsReport* report) const; 115 int64_t timestamp_us, RTCStatsReport* report) const;
113 // Produces |RTCPeerConnectionStats|. 116 // Produces |RTCPeerConnectionStats|.
114 void ProducePeerConnectionStats_s( 117 void ProducePeerConnectionStats_s(
115 int64_t timestamp_us, RTCStatsReport* report) const; 118 int64_t timestamp_us, RTCStatsReport* report) const;
116 // Produces |RTCInboundRTPStreamStats| and |RTCOutboundRTPStreamStats|. 119 // Produces |RTCInboundRTPStreamStats| and |RTCOutboundRTPStreamStats|.
117 void ProduceRTPStreamStats_n( 120 void ProduceRTPStreamStats_n(
118 int64_t timestamp_us, const SessionStats& session_stats, 121 int64_t timestamp_us, const SessionStats& session_stats,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 }; 187 };
185 188
186 const char* CandidateTypeToRTCIceCandidateTypeForTesting( 189 const char* CandidateTypeToRTCIceCandidateTypeForTesting(
187 const std::string& type); 190 const std::string& type);
188 const char* DataStateToRTCDataChannelStateForTesting( 191 const char* DataStateToRTCDataChannelStateForTesting(
189 DataChannelInterface::DataState state); 192 DataChannelInterface::DataState state);
190 193
191 } // namespace webrtc 194 } // namespace webrtc
192 195
193 #endif // WEBRTC_PC_RTCSTATSCOLLECTOR_H_ 196 #endif // WEBRTC_PC_RTCSTATSCOLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698