OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // returns the leaf certificate's report (|cert|'s report). | 103 // returns the leaf certificate's report (|cert|'s report). |
104 StatsReport* AddCertificateReports(const rtc::SSLCertificate* cert); | 104 StatsReport* AddCertificateReports(const rtc::SSLCertificate* cert); |
105 | 105 |
106 StatsReport* AddConnectionInfoReport(const std::string& content_name, | 106 StatsReport* AddConnectionInfoReport(const std::string& content_name, |
107 int component, int connection_id, | 107 int component, int connection_id, |
108 const StatsReport::Id& channel_report_id, | 108 const StatsReport::Id& channel_report_id, |
109 const cricket::ConnectionInfo& info); | 109 const cricket::ConnectionInfo& info); |
110 | 110 |
111 void ExtractDataInfo(); | 111 void ExtractDataInfo(); |
112 void ExtractSessionInfo(); | 112 void ExtractSessionInfo(); |
113 void ExtractBweInfo(); | |
114 void ExtractVoiceInfo(); | 113 void ExtractVoiceInfo(); |
115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); | 114 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); |
116 void ExtractSenderInfo(); | 115 void ExtractSenderInfo(); |
117 void BuildSsrcToTransportId(); | 116 void BuildSsrcToTransportId(); |
118 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type, | 117 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type, |
119 const std::string& id, | 118 const std::string& id, |
120 StatsReport::Direction direction); | 119 StatsReport::Direction direction); |
121 | 120 |
122 // Helper method to get stats from the local audio tracks. | 121 // Helper method to get stats from the local audio tracks. |
123 void UpdateStatsFromExistingLocalAudioTracks(); | 122 void UpdateStatsFromExistingLocalAudioTracks(); |
(...skipping 20 matching lines...) Expand all Loading... |
144 // TODO(tommi): We appear to be holding on to raw pointers to reference | 143 // TODO(tommi): We appear to be holding on to raw pointers to reference |
145 // counted objects? We should be using scoped_refptr here. | 144 // counted objects? We should be using scoped_refptr here. |
146 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > | 145 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > |
147 LocalAudioTrackVector; | 146 LocalAudioTrackVector; |
148 LocalAudioTrackVector local_audio_tracks_; | 147 LocalAudioTrackVector local_audio_tracks_; |
149 }; | 148 }; |
150 | 149 |
151 } // namespace webrtc | 150 } // namespace webrtc |
152 | 151 |
153 #endif // WEBRTC_PC_STATSCOLLECTOR_H_ | 152 #endif // WEBRTC_PC_STATSCOLLECTOR_H_ |
OLD | NEW |