| 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 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void IncomingPacket(const RTPHeader& header, | 105 void IncomingPacket(const RTPHeader& header, |
| 106 size_t packet_length, | 106 size_t packet_length, |
| 107 bool retransmitted) override; | 107 bool retransmitted) override; |
| 108 void FecPacketReceived(const RTPHeader& header, | 108 void FecPacketReceived(const RTPHeader& header, |
| 109 size_t packet_length) override; | 109 size_t packet_length) override; |
| 110 StatisticianMap GetActiveStatisticians() const override; | 110 StatisticianMap GetActiveStatisticians() const override; |
| 111 StreamStatistician* GetStatistician(uint32_t ssrc) const override; | 111 StreamStatistician* GetStatistician(uint32_t ssrc) const override; |
| 112 void SetMaxReorderingThreshold(int max_reordering_threshold) override; | 112 void SetMaxReorderingThreshold(int max_reordering_threshold) override; |
| 113 | 113 |
| 114 // Implement Module. | 114 // Implement Module. |
| 115 int32_t Process() override; | 115 void Process() override; |
| 116 int64_t TimeUntilNextProcess() override; | 116 int64_t TimeUntilNextProcess() override; |
| 117 | 117 |
| 118 void RegisterRtcpStatisticsCallback( | 118 void RegisterRtcpStatisticsCallback( |
| 119 RtcpStatisticsCallback* callback) override; | 119 RtcpStatisticsCallback* callback) override; |
| 120 | 120 |
| 121 void RegisterRtpStatisticsCallback( | 121 void RegisterRtpStatisticsCallback( |
| 122 StreamDataCountersCallback* callback) override; | 122 StreamDataCountersCallback* callback) override; |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 void StatisticsUpdated(const RtcpStatistics& statistics, | 125 void StatisticsUpdated(const RtcpStatistics& statistics, |
| 126 uint32_t ssrc) override; | 126 uint32_t ssrc) override; |
| 127 void CNameChanged(const char* cname, uint32_t ssrc) override; | 127 void CNameChanged(const char* cname, uint32_t ssrc) override; |
| 128 void DataCountersUpdated(const StreamDataCounters& counters, | 128 void DataCountersUpdated(const StreamDataCounters& counters, |
| 129 uint32_t ssrc) override; | 129 uint32_t ssrc) override; |
| 130 | 130 |
| 131 typedef std::map<uint32_t, StreamStatisticianImpl*> StatisticianImplMap; | 131 typedef std::map<uint32_t, StreamStatisticianImpl*> StatisticianImplMap; |
| 132 | 132 |
| 133 Clock* clock_; | 133 Clock* clock_; |
| 134 rtc::scoped_ptr<CriticalSectionWrapper> receive_statistics_lock_; | 134 rtc::scoped_ptr<CriticalSectionWrapper> receive_statistics_lock_; |
| 135 int64_t last_rate_update_ms_; | 135 int64_t last_rate_update_ms_; |
| 136 StatisticianImplMap statisticians_; | 136 StatisticianImplMap statisticians_; |
| 137 | 137 |
| 138 RtcpStatisticsCallback* rtcp_stats_callback_; | 138 RtcpStatisticsCallback* rtcp_stats_callback_; |
| 139 StreamDataCountersCallback* rtp_stats_callback_; | 139 StreamDataCountersCallback* rtp_stats_callback_; |
| 140 }; | 140 }; |
| 141 } // namespace webrtc | 141 } // namespace webrtc |
| 142 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ | 142 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RECEIVE_STATISTICS_IMPL_H_ |
| OLD | NEW |