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

Unified Diff: webrtc/pc/webrtcsession.cc

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Comments addresed. 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 side-by-side diff with in-line comments
Download patch
« webrtc/pc/webrtcsession.h ('K') | « webrtc/pc/webrtcsession.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/webrtcsession.cc
diff --git a/webrtc/pc/webrtcsession.cc b/webrtc/pc/webrtcsession.cc
index cc424b222e081c994b6a7e546f59c126d86a7c01..47c046a4d1810cf433ed3be88f173960d5577224 100644
--- a/webrtc/pc/webrtcsession.cc
+++ b/webrtc/pc/webrtcsession.cc
@@ -1895,6 +1895,17 @@ bool WebRtcSession::CreateDataChannel(const cricket::ContentInfo* content,
return true;
}
+Call::Stats WebRtcSession::GetCallStats() {
+ RTC_DCHECK(network_thread()->IsCurrent());
+ return call_->GetStats();
+}
+
+Call::Stats WebRtcSession::GetCallStats_s() {
+ RTC_DCHECK(signaling_thread()->IsCurrent());
+ return network_thread()->Invoke<Call::Stats>(
+ RTC_FROM_HERE, rtc::Bind(&WebRtcSession::GetCallStats, this));
Taylor Brandstetter 2017/05/31 00:03:51 Would "rtc::Bind(&Call::GetStats, call_)" work?
hbos 2017/05/31 14:31:58 Yes but if GetCallStats is ever updated you'd have
+}
+
std::unique_ptr<SessionStats> WebRtcSession::GetStats_n(
const ChannelNamePairs& channel_name_pairs) {
RTC_DCHECK(network_thread()->IsCurrent());
« webrtc/pc/webrtcsession.h ('K') | « webrtc/pc/webrtcsession.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698