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

Side by Side Diff: third_party/WebKit/public/platform/WebRTCStats.h

Issue 2359103002: WebRTCStatsReport::copyHandle and getStats added (Closed)
Patch Set: 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 | « content/renderer/media/webrtc/rtc_stats.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRTCStats_h 5 #ifndef WebRTCStats_h
6 #define WebRTCStats_h 6 #define WebRTCStats_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "WebString.h" 9 #include "WebString.h"
10 #include "WebVector.h" 10 #include "WebVector.h"
(...skipping 19 matching lines...) Expand all
30 WebRTCStatsMemberTypeSequenceUint32, // WebVector<uint32_t> 30 WebRTCStatsMemberTypeSequenceUint32, // WebVector<uint32_t>
31 WebRTCStatsMemberTypeSequenceInt64, // WebVector<int64_t> 31 WebRTCStatsMemberTypeSequenceInt64, // WebVector<int64_t>
32 WebRTCStatsMemberTypeSequenceUint64, // WebVector<uint64_t> 32 WebRTCStatsMemberTypeSequenceUint64, // WebVector<uint64_t>
33 WebRTCStatsMemberTypeSequenceDouble, // WebVector<double> 33 WebRTCStatsMemberTypeSequenceDouble, // WebVector<double>
34 WebRTCStatsMemberTypeSequenceString, // WebVector<WebString> 34 WebRTCStatsMemberTypeSequenceString, // WebVector<WebString>
35 }; 35 };
36 36
37 class WebRTCStatsReport { 37 class WebRTCStatsReport {
38 public: 38 public:
39 virtual ~WebRTCStatsReport() {} 39 virtual ~WebRTCStatsReport() {}
40 // Creates a new report object that is a handle to the same underlying stats
41 // report (the stats are not copied). The new report's iterator is reset,
42 // useful when needing multiple iterators.
43 virtual std::unique_ptr<WebRTCStatsReport> copyHandle() const = 0;
40 44
45 // Gets stats object by |id|, or null if no stats with that |id| exists.
foolip 2016/09/22 12:44:58 Not actually null, but maybe "std::unique_ptr<> wh
46 virtual std::unique_ptr<WebRTCStats> getStats(WebString id) const = 0;
41 // The next stats object, or null if the end has been reached. 47 // The next stats object, or null if the end has been reached.
42 virtual std::unique_ptr<WebRTCStats> next() = 0; 48 virtual std::unique_ptr<WebRTCStats> next() = 0;
43 }; 49 };
44 50
45 class WebRTCStats { 51 class WebRTCStats {
46 public: 52 public:
47 virtual ~WebRTCStats() {} 53 virtual ~WebRTCStats() {}
48 54
49 virtual WebString id() const = 0; 55 virtual WebString id() const = 0;
50 virtual WebString type() const = 0; 56 virtual WebString type() const = 0;
(...skipping 21 matching lines...) Expand all
72 virtual WebVector<uint32_t> valueSequenceUint32() const = 0; 78 virtual WebVector<uint32_t> valueSequenceUint32() const = 0;
73 virtual WebVector<int64_t> valueSequenceInt64() const = 0; 79 virtual WebVector<int64_t> valueSequenceInt64() const = 0;
74 virtual WebVector<uint64_t> valueSequenceUint64() const = 0; 80 virtual WebVector<uint64_t> valueSequenceUint64() const = 0;
75 virtual WebVector<double> valueSequenceDouble() const = 0; 81 virtual WebVector<double> valueSequenceDouble() const = 0;
76 virtual WebVector<WebString> valueSequenceString() const = 0; 82 virtual WebVector<WebString> valueSequenceString() const = 0;
77 }; 83 };
78 84
79 } // namespace blink 85 } // namespace blink
80 86
81 #endif // WebRTCStats_h 87 #endif // WebRTCStats_h
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/rtc_stats.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698