| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // CallStats keeps track of statistics for a call. | 27 // CallStats keeps track of statistics for a call. |
| 28 class CallStats : public Module { | 28 class CallStats : public Module { |
| 29 public: | 29 public: |
| 30 friend class RtcpObserver; | 30 friend class RtcpObserver; |
| 31 | 31 |
| 32 explicit CallStats(Clock* clock); | 32 explicit CallStats(Clock* clock); |
| 33 ~CallStats(); | 33 ~CallStats(); |
| 34 | 34 |
| 35 // Implements Module, to use the process thread. | 35 // Implements Module, to use the process thread. |
| 36 int64_t TimeUntilNextProcess() override; | 36 int64_t TimeUntilNextProcess() override; |
| 37 int32_t Process() override; | 37 void Process() override; |
| 38 | 38 |
| 39 // Returns a RtcpRttStats to register at a statistics provider. The object | 39 // Returns a RtcpRttStats to register at a statistics provider. The object |
| 40 // has the same lifetime as the CallStats instance. | 40 // has the same lifetime as the CallStats instance. |
| 41 RtcpRttStats* rtcp_rtt_stats() const; | 41 RtcpRttStats* rtcp_rtt_stats() const; |
| 42 | 42 |
| 43 // Registers/deregisters a new observer to receive statistics updates. | 43 // Registers/deregisters a new observer to receive statistics updates. |
| 44 void RegisterStatsObserver(CallStatsObserver* observer); | 44 void RegisterStatsObserver(CallStatsObserver* observer); |
| 45 void DeregisterStatsObserver(CallStatsObserver* observer); | 45 void DeregisterStatsObserver(CallStatsObserver* observer); |
| 46 | 46 |
| 47 // Helper struct keeping track of the time a rtt value is reported. | 47 // Helper struct keeping track of the time a rtt value is reported. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Observers getting stats reports. | 80 // Observers getting stats reports. |
| 81 std::list<CallStatsObserver*> observers_; | 81 std::list<CallStatsObserver*> observers_; |
| 82 | 82 |
| 83 RTC_DISALLOW_COPY_AND_ASSIGN(CallStats); | 83 RTC_DISALLOW_COPY_AND_ASSIGN(CallStats); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace webrtc | 86 } // namespace webrtc |
| 87 | 87 |
| 88 #endif // WEBRTC_VIDEO_CALL_STATS_H_ | 88 #endif // WEBRTC_VIDEO_CALL_STATS_H_ |
| OLD | NEW |