Index: third_party/WebKit/public/platform/WebRTCStats.h |
diff --git a/third_party/WebKit/public/platform/WebRTCStats.h b/third_party/WebKit/public/platform/WebRTCStats.h |
index 6983906dee291786ca6483fb05964401f63a415f..9c57cf141fbb24a3d6be9f68f9c7b3bca42978cd 100644 |
--- a/third_party/WebKit/public/platform/WebRTCStats.h |
+++ b/third_party/WebKit/public/platform/WebRTCStats.h |
@@ -37,7 +37,13 @@ enum WebRTCStatsMemberType { |
class WebRTCStatsReport { |
public: |
virtual ~WebRTCStatsReport() {} |
+ // Creates a new report object that is a handle to the same underlying stats |
+ // report (the stats are not copied). The new report's iterator is reset, |
+ // useful when needing multiple iterators. |
+ virtual std::unique_ptr<WebRTCStatsReport> copyHandle() const = 0; |
+ // 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
|
+ virtual std::unique_ptr<WebRTCStats> getStats(WebString id) const = 0; |
// The next stats object, or null if the end has been reached. |
virtual std::unique_ptr<WebRTCStats> next() = 0; |
}; |