| 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 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 // This file contains a class used for gathering statistics from an ongoing | 28 // This file contains a class used for gathering statistics from an ongoing |
| 29 // libjingle PeerConnection. | 29 // libjingle PeerConnection. |
| 30 | 30 |
| 31 #ifndef TALK_APP_WEBRTC_STATSCOLLECTOR_H_ | 31 #ifndef WEBRTC_API_STATSCOLLECTOR_H_ |
| 32 #define TALK_APP_WEBRTC_STATSCOLLECTOR_H_ | 32 #define WEBRTC_API_STATSCOLLECTOR_H_ |
| 33 | 33 |
| 34 #include <map> | 34 #include <map> |
| 35 #include <string> | 35 #include <string> |
| 36 #include <vector> | 36 #include <vector> |
| 37 | 37 |
| 38 #include "talk/app/webrtc/mediastreaminterface.h" | 38 #include "webrtc/api/mediastreaminterface.h" |
| 39 #include "talk/app/webrtc/peerconnectioninterface.h" | 39 #include "webrtc/api/peerconnectioninterface.h" |
| 40 #include "talk/app/webrtc/statstypes.h" | 40 #include "webrtc/api/statstypes.h" |
| 41 #include "talk/app/webrtc/webrtcsession.h" | 41 #include "webrtc/api/webrtcsession.h" |
| 42 | 42 |
| 43 namespace webrtc { | 43 namespace webrtc { |
| 44 | 44 |
| 45 class PeerConnection; | 45 class PeerConnection; |
| 46 | 46 |
| 47 // Conversion function to convert candidate type string to the corresponding one | 47 // Conversion function to convert candidate type string to the corresponding one |
| 48 // from enum RTCStatsIceCandidateType. | 48 // from enum RTCStatsIceCandidateType. |
| 49 const char* IceCandidateTypeToStatsType(const std::string& candidate_type); | 49 const char* IceCandidateTypeToStatsType(const std::string& candidate_type); |
| 50 | 50 |
| 51 // Conversion function to convert adapter type to report string which are more | 51 // Conversion function to convert adapter type to report string which are more |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // TODO(tommi): We appear to be holding on to raw pointers to reference | 160 // TODO(tommi): We appear to be holding on to raw pointers to reference |
| 161 // counted objects? We should be using scoped_refptr here. | 161 // counted objects? We should be using scoped_refptr here. |
| 162 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > | 162 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > |
| 163 LocalAudioTrackVector; | 163 LocalAudioTrackVector; |
| 164 LocalAudioTrackVector local_audio_tracks_; | 164 LocalAudioTrackVector local_audio_tracks_; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace webrtc | 167 } // namespace webrtc |
| 168 | 168 |
| 169 #endif // TALK_APP_WEBRTC_STATSCOLLECTOR_H_ | 169 #endif // WEBRTC_API_STATSCOLLECTOR_H_ |
| OLD | NEW |