OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ |
13 | 13 |
14 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" | 14 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
| 17 #include <map> |
17 | 18 |
18 #include "webrtc/base/scoped_ptr.h" | 19 #include "webrtc/base/scoped_ptr.h" |
19 #include "webrtc/modules/rtp_rtcp/source/bitrate.h" | 20 #include "webrtc/modules/rtp_rtcp/source/bitrate.h" |
20 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 21 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
21 | 22 |
22 namespace webrtc { | 23 namespace webrtc { |
23 | 24 |
24 class CriticalSectionWrapper; | 25 class CriticalSectionWrapper; |
25 | 26 |
26 class StreamStatisticianImpl : public StreamStatistician { | 27 class StreamStatisticianImpl : public StreamStatistician { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 Clock* clock_; | 135 Clock* clock_; |
135 rtc::scoped_ptr<CriticalSectionWrapper> receive_statistics_lock_; | 136 rtc::scoped_ptr<CriticalSectionWrapper> receive_statistics_lock_; |
136 int64_t last_rate_update_ms_; | 137 int64_t last_rate_update_ms_; |
137 StatisticianImplMap statisticians_; | 138 StatisticianImplMap statisticians_; |
138 | 139 |
139 RtcpStatisticsCallback* rtcp_stats_callback_; | 140 RtcpStatisticsCallback* rtcp_stats_callback_; |
140 StreamDataCountersCallback* rtp_stats_callback_; | 141 StreamDataCountersCallback* rtp_stats_callback_; |
141 }; | 142 }; |
142 } // namespace webrtc | 143 } // namespace webrtc |
143 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ | 144 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ |
OLD | NEW |