OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 // Helper method to update the timestamp of track records. | 148 // Helper method to update the timestamp of track records. |
149 void UpdateTrackReports(); | 149 void UpdateTrackReports(); |
150 | 150 |
151 // A collection for all of our stats reports. | 151 // A collection for all of our stats reports. |
152 StatsCollection reports_; | 152 StatsCollection reports_; |
153 TrackIdMap track_ids_; | 153 TrackIdMap track_ids_; |
154 // Raw pointer to the session the statistics are gathered from. | 154 // Raw pointer to the session the statistics are gathered from. |
155 WebRtcSession* const session_; | 155 WebRtcSession* const session_; |
156 double stats_gathering_started_; | 156 double stats_gathering_started_; |
157 cricket::ProxyTransportMap proxy_to_transport_; | 157 ProxyTransportMap proxy_to_transport_; |
158 | 158 |
159 // TODO(tommi): We appear to be holding on to raw pointers to reference | 159 // TODO(tommi): We appear to be holding on to raw pointers to reference |
160 // counted objects? We should be using scoped_refptr here. | 160 // counted objects? We should be using scoped_refptr here. |
161 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > | 161 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > |
162 LocalAudioTrackVector; | 162 LocalAudioTrackVector; |
163 LocalAudioTrackVector local_audio_tracks_; | 163 LocalAudioTrackVector local_audio_tracks_; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace webrtc | 166 } // namespace webrtc |
167 | 167 |
168 #endif // TALK_APP_WEBRTC_STATSCOLLECTOR_H_ | 168 #endif // TALK_APP_WEBRTC_STATSCOLLECTOR_H_ |
OLD | NEW |