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(); |
113 void ExtractVoiceInfo(); | 114 void ExtractVoiceInfo(); |
114 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); | 115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); |
115 void ExtractSenderInfo(); | 116 void ExtractSenderInfo(); |
116 void BuildSsrcToTransportId(); | 117 void BuildSsrcToTransportId(); |
117 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type, | 118 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type, |
118 const std::string& id, | 119 const std::string& id, |
119 StatsReport::Direction direction); | 120 StatsReport::Direction direction); |
120 | 121 |
121 // Helper method to get stats from the local audio tracks. | 122 // Helper method to get stats from the local audio tracks. |
122 void UpdateStatsFromExistingLocalAudioTracks(); | 123 void UpdateStatsFromExistingLocalAudioTracks(); |
(...skipping 20 matching lines...) Expand all Loading... |
143 // TODO(tommi): We appear to be holding on to raw pointers to reference | 144 // TODO(tommi): We appear to be holding on to raw pointers to reference |
144 // counted objects? We should be using scoped_refptr here. | 145 // counted objects? We should be using scoped_refptr here. |
145 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > | 146 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > |
146 LocalAudioTrackVector; | 147 LocalAudioTrackVector; |
147 LocalAudioTrackVector local_audio_tracks_; | 148 LocalAudioTrackVector local_audio_tracks_; |
148 }; | 149 }; |
149 | 150 |
150 } // namespace webrtc | 151 } // namespace webrtc |
151 | 152 |
152 #endif // WEBRTC_PC_STATSCOLLECTOR_H_ | 153 #endif // WEBRTC_PC_STATSCOLLECTOR_H_ |
OLD | NEW |