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

Unified Diff: webrtc/api/peerconnection.h

Issue 2335553006: Moving webrtc/stats/ into webrtc/api/ to resolve a circular dependency (Closed)
Patch Set: 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
Index: webrtc/api/peerconnection.h
diff --git a/webrtc/api/peerconnection.h b/webrtc/api/peerconnection.h
index 042e7f1bd43f539aa14cd7f4cc8b1c096ee9b1d7..6d3c73621c096e1870545b9f2826bedad0a10527 100644
--- a/webrtc/api/peerconnection.h
+++ b/webrtc/api/peerconnection.h
@@ -18,6 +18,7 @@
#include "webrtc/api/peerconnectionfactory.h"
#include "webrtc/api/peerconnectioninterface.h"
+#include "webrtc/api/rtcstatscollector.h"
#include "webrtc/api/rtpreceiver.h"
#include "webrtc/api/rtpsender.h"
#include "webrtc/api/statscollector.h"
@@ -102,6 +103,8 @@ class PeerConnection : public PeerConnectionInterface,
bool GetStats(StatsObserver* observer,
webrtc::MediaStreamTrackInterface* track,
StatsOutputLevel level) override;
+ void GetRTCStats(
+ const rtc::scoped_refptr<RTCStatsCollectorCallback>& callback) override;
nisse-webrtc 2016/09/13 08:16:40 Passing references to "smart pointers" is no longe
SignalingState signaling_state() override;
@@ -427,6 +430,7 @@ class PeerConnection : public PeerConnectionInterface,
std::unique_ptr<WebRtcSession> session_;
std::unique_ptr<StatsCollector> stats_;
+ rtc::scoped_refptr<RTCStatsCollector> stats_collector_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698