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

Unified Diff: webrtc/api/peerconnection.cc

Issue 2331373004: PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. (Closed)
Patch Set: (Corrected an incorrect inclusion) Created 4 years, 3 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
« no previous file with comments | « webrtc/api/peerconnection.h ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnection.cc
diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
index bdd33d7d371003d15197f10579413fb253421263..144b1c64b55862b066f595e3737d89a43a251d05 100644
--- a/webrtc/api/peerconnection.cc
+++ b/webrtc/api/peerconnection.cc
@@ -632,6 +632,7 @@ bool PeerConnection::Initialize(
configuration.redetermine_role_on_ice_restart))));
stats_.reset(new StatsCollector(this));
+ stats_collector_ = RTCStatsCollector::Create(this);
enable_ice_renomination_ = configuration.enable_ice_renomination;
@@ -888,6 +889,11 @@ bool PeerConnection::GetStats(StatsObserver* observer,
return true;
}
+void PeerConnection::GetStats(RTCStatsCollectorCallback* callback) {
+ RTC_DCHECK(stats_collector_);
+ stats_collector_->GetStatsReport(callback);
+}
+
PeerConnectionInterface::SignalingState PeerConnection::signaling_state() {
return signaling_state_;
}
« no previous file with comments | « webrtc/api/peerconnection.h ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698