Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: webrtc/api/rtcstatscollector.h

Issue 2331373004: PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. (Closed)
Patch Set: (Corrected an incorrect inclusion) Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/rtcstats_objects.h ('k') | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webrtc/api/rtcstats_objects.h ('k') | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698