Revert "Revert of Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (patchset #8 id:140001 of https://codereview.webrtc.org/2863123002/ )" This reverts commit d72098a41971833e210bfdcffaab7a18ced4775f. BUG=webrtc:5079 Review-Url: https://codereview.webrtc.org/2915263002 Cr-Commit-Position: refs/heads/master@{#18411}
diff --git a/webrtc/pc/rtcstatscollector.h b/webrtc/pc/rtcstatscollector.h index 48e66ba..9dce0fe 100644 --- a/webrtc/pc/rtcstatscollector.h +++ b/webrtc/pc/rtcstatscollector.h
@@ -26,6 +26,7 @@ #include "webrtc/base/sigslot.h" #include "webrtc/base/sslidentity.h" #include "webrtc/base/timeutils.h" +#include "webrtc/call/call.h" #include "webrtc/media/base/mediachannel.h" #include "webrtc/pc/datachannel.h" #include "webrtc/pc/trackmediainfomap.h" @@ -104,8 +105,10 @@ int64_t timestamp_us, RTCStatsReport* report) const; // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. void ProduceIceCandidateAndPairStats_n( - int64_t timestamp_us, const SessionStats& session_stats, + int64_t timestamp_us, + const SessionStats& session_stats, const cricket::VideoMediaInfo* video_media_info, + const Call::Stats& call_stats, RTCStatsReport* report) const; // Produces |RTCMediaStreamStats| and |RTCMediaStreamTrackStats|. void ProduceMediaStreamAndTrackStats_s( @@ -154,6 +157,7 @@ std::unique_ptr<ChannelNamePairs> channel_name_pairs_; std::unique_ptr<TrackMediaInfoMap> track_media_info_map_; std::map<MediaStreamTrackInterface*, std::string> track_to_id_; + Call::Stats call_stats_; // A timestamp, in microseconds, that is based on a timer that is // monotonically increasing. That is, even if the system clock is modified the