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

Unified Diff: talk/app/webrtc/statscollector.h

Issue 1393563002: Moving MediaStreamSignaling logic into PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing copyright header Created 5 years, 2 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 | « talk/app/webrtc/sctputils_unittest.cc ('k') | talk/app/webrtc/statscollector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/statscollector.h
diff --git a/talk/app/webrtc/statscollector.h b/talk/app/webrtc/statscollector.h
index add26c6465eee0634237d8a90caf39d175f0c52f..714f15a4012e42bc7e3c2d55dc2c2935176a2ba1 100644
--- a/talk/app/webrtc/statscollector.h
+++ b/talk/app/webrtc/statscollector.h
@@ -43,6 +43,8 @@
namespace webrtc {
+class PeerConnection;
+
// Conversion function to convert candidate type string to the corresponding one
// from enum RTCStatsIceCandidateType.
const char* IceCandidateTypeToStatsType(const std::string& candidate_type);
@@ -57,9 +59,9 @@ typedef std::map<std::string, StatsReport*> TrackIdMap;
class StatsCollector {
public:
- // The caller is responsible for ensuring that the session outlives the
+ // The caller is responsible for ensuring that the pc outlives the
// StatsCollector instance.
- explicit StatsCollector(WebRtcSession* session);
+ explicit StatsCollector(PeerConnection* pc);
virtual ~StatsCollector();
// Adds a MediaStream with tracks that can be used as a |selector| in a call
@@ -151,8 +153,8 @@ class StatsCollector {
// A collection for all of our stats reports.
StatsCollection reports_;
TrackIdMap track_ids_;
- // Raw pointer to the session the statistics are gathered from.
- WebRtcSession* const session_;
+ // Raw pointer to the peer connection the statistics are gathered from.
+ PeerConnection* const pc_;
double stats_gathering_started_;
cricket::ProxyTransportMap proxy_to_transport_;
« no previous file with comments | « talk/app/webrtc/sctputils_unittest.cc ('k') | talk/app/webrtc/statscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698