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 #include <map> |
18 | 18 |
19 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/rtc_base/criticalsection.h" |
20 #include "webrtc/base/rate_statistics.h" | 20 #include "webrtc/rtc_base/rate_statistics.h" |
21 #include "webrtc/system_wrappers/include/ntp_time.h" | 21 #include "webrtc/system_wrappers/include/ntp_time.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class StreamStatisticianImpl : public StreamStatistician { | 25 class StreamStatisticianImpl : public StreamStatistician { |
26 public: | 26 public: |
27 StreamStatisticianImpl(Clock* clock, | 27 StreamStatisticianImpl(Clock* clock, |
28 RtcpStatisticsCallback* rtcp_callback, | 28 RtcpStatisticsCallback* rtcp_callback, |
29 StreamDataCountersCallback* rtp_callback); | 29 StreamDataCountersCallback* rtp_callback); |
30 virtual ~StreamStatisticianImpl() {} | 30 virtual ~StreamStatisticianImpl() {} |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 Clock* const clock_; | 125 Clock* const clock_; |
126 rtc::CriticalSection receive_statistics_lock_; | 126 rtc::CriticalSection receive_statistics_lock_; |
127 StatisticianImplMap statisticians_; | 127 StatisticianImplMap statisticians_; |
128 | 128 |
129 RtcpStatisticsCallback* rtcp_stats_callback_; | 129 RtcpStatisticsCallback* rtcp_stats_callback_; |
130 StreamDataCountersCallback* rtp_stats_callback_; | 130 StreamDataCountersCallback* rtp_stats_callback_; |
131 }; | 131 }; |
132 } // namespace webrtc | 132 } // namespace webrtc |
133 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ | 133 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ |
OLD | NEW |