OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |