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_STATS_RTCSTATSCOLLECTOR_H_ | 11 #ifndef WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
12 #define WEBRTC_STATS_RTCSTATSCOLLECTOR_H_ | 12 #define WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/api/rtcstats_objects.h" | 17 #include "webrtc/api/stats/rtcstats_objects.h" |
18 #include "webrtc/api/rtcstatsreport.h" | 18 #include "webrtc/api/stats/rtcstatsreport.h" |
19 #include "webrtc/base/asyncinvoker.h" | 19 #include "webrtc/base/asyncinvoker.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 #include "webrtc/base/timeutils.h" | 22 #include "webrtc/base/timeutils.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class PeerConnection; | 26 class PeerConnection; |
27 | 27 |
28 class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface { | 28 class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // monotonically increasing. That is, even if the system clock is modified the | 87 // monotonically increasing. That is, even if the system clock is modified the |
88 // difference between the timer and this timestamp is how fresh the cached | 88 // difference between the timer and this timestamp is how fresh the cached |
89 // report is. | 89 // report is. |
90 int64_t cache_timestamp_us_; | 90 int64_t cache_timestamp_us_; |
91 int64_t cache_lifetime_us_; | 91 int64_t cache_lifetime_us_; |
92 rtc::scoped_refptr<const RTCStatsReport> cached_report_; | 92 rtc::scoped_refptr<const RTCStatsReport> cached_report_; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace webrtc | 95 } // namespace webrtc |
96 | 96 |
97 #endif // WEBRTC_STATS_RTCSTATSCOLLECTOR_H_ | 97 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
OLD | NEW |