| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 StatsReport* AddConnectionInfoReport(const std::string& content_name, | 107 StatsReport* AddConnectionInfoReport(const std::string& content_name, |
| 108 int component, int connection_id, | 108 int component, int connection_id, |
| 109 const StatsReport::Id& channel_report_id, | 109 const StatsReport::Id& channel_report_id, |
| 110 const cricket::ConnectionInfo& info); | 110 const cricket::ConnectionInfo& info); |
| 111 | 111 |
| 112 void ExtractDataInfo(); | 112 void ExtractDataInfo(); |
| 113 void ExtractSessionInfo(); | 113 void ExtractSessionInfo(); |
| 114 void ExtractVoiceInfo(); | 114 void ExtractVoiceInfo(); |
| 115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); | 115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); |
| 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(); |
| 123 void UpdateReportFromAudioTrack(AudioTrackInterface* track, | 124 void UpdateReportFromAudioTrack(AudioTrackInterface* track, |
| 124 StatsReport* report); | 125 StatsReport* report); |
| 125 | 126 |
| (...skipping 17 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_API_STATSCOLLECTOR_H_ | 153 #endif // WEBRTC_API_STATSCOLLECTOR_H_ |
| OLD | NEW |