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 |
11 // This file contains a class used for gathering statistics from an ongoing | 11 // This file contains a class used for gathering statistics from an ongoing |
12 // libjingle PeerConnection. | 12 // libjingle PeerConnection. |
13 | 13 |
14 #ifndef WEBRTC_API_STATSCOLLECTOR_H_ | 14 #ifndef WEBRTC_PC_STATSCOLLECTOR_H_ |
15 #define WEBRTC_API_STATSCOLLECTOR_H_ | 15 #define WEBRTC_PC_STATSCOLLECTOR_H_ |
16 | 16 |
17 #include <map> | 17 #include <map> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/api/mediastreaminterface.h" | 21 #include "webrtc/api/mediastreaminterface.h" |
22 #include "webrtc/api/peerconnectioninterface.h" | 22 #include "webrtc/api/peerconnectioninterface.h" |
23 #include "webrtc/api/statstypes.h" | 23 #include "webrtc/api/statstypes.h" |
24 #include "webrtc/api/webrtcsession.h" | 24 #include "webrtc/pc/webrtcsession.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 class PeerConnection; | 28 class PeerConnection; |
29 | 29 |
30 // Conversion function to convert candidate type string to the corresponding one | 30 // Conversion function to convert candidate type string to the corresponding one |
31 // from enum RTCStatsIceCandidateType. | 31 // from enum RTCStatsIceCandidateType. |
32 const char* IceCandidateTypeToStatsType(const std::string& candidate_type); | 32 const char* IceCandidateTypeToStatsType(const std::string& candidate_type); |
33 | 33 |
34 // Conversion function to convert adapter type to report string which are more | 34 // 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... |
142 | 142 |
143 // 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 |
144 // counted objects? We should be using scoped_refptr here. | 144 // counted objects? We should be using scoped_refptr here. |
145 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > | 145 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > |
146 LocalAudioTrackVector; | 146 LocalAudioTrackVector; |
147 LocalAudioTrackVector local_audio_tracks_; | 147 LocalAudioTrackVector local_audio_tracks_; |
148 }; | 148 }; |
149 | 149 |
150 } // namespace webrtc | 150 } // namespace webrtc |
151 | 151 |
152 #endif // WEBRTC_API_STATSCOLLECTOR_H_ | 152 #endif // WEBRTC_PC_STATSCOLLECTOR_H_ |
OLD | NEW |