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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/webrtc/rtc_stats.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« 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