OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 #ifndef WEBRTC_API_RTCSTATSREPORT_H_ | 11 #ifndef WEBRTC_API_STATS_RTCSTATSREPORT_H_ |
12 #define WEBRTC_API_RTCSTATSREPORT_H_ | 12 #define WEBRTC_API_STATS_RTCSTATSREPORT_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/api/rtcstats.h" | 19 #include "webrtc/api/stats/rtcstats.h" |
20 #include "webrtc/base/refcount.h" | 20 #include "webrtc/base/refcount.h" |
21 #include "webrtc/base/scoped_ref_ptr.h" | 21 #include "webrtc/base/scoped_ref_ptr.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // A collection of stats. | 25 // A collection of stats. |
26 // This is accessible as a map from |RTCStats::id| to |RTCStats|. | 26 // This is accessible as a map from |RTCStats::id| to |RTCStats|. |
27 class RTCStatsReport : public rtc::RefCountInterface { | 27 class RTCStatsReport : public rtc::RefCountInterface { |
28 public: | 28 public: |
29 typedef std::map<std::string, std::unique_ptr<const RTCStats>> StatsMap; | 29 typedef std::map<std::string, std::unique_ptr<const RTCStats>> StatsMap; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 friend class rtc::RefCountedObject<RTCStatsReport>; | 80 friend class rtc::RefCountedObject<RTCStatsReport>; |
81 | 81 |
82 private: | 82 private: |
83 ~RTCStatsReport() override; | 83 ~RTCStatsReport() override; |
84 | 84 |
85 StatsMap stats_; | 85 StatsMap stats_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace webrtc | 88 } // namespace webrtc |
89 | 89 |
90 #endif // WEBRTC_API_RTCSTATSREPORT_H_ | 90 #endif // WEBRTC_API_STATS_RTCSTATSREPORT_H_ |
OLD | NEW |