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

Unified Diff: webrtc/api/rtcstatsreport.h

Issue 2278433003: RTCStatsReport: Take ownership of other's stats with TakeMembersFrom (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | webrtc/stats/BUILD.gn » ('j') | webrtc/stats/rtcstatsreport.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstatsreport.h
diff --git a/webrtc/api/rtcstatsreport.h b/webrtc/api/rtcstatsreport.h
index 42237eba725ce687ab7dc01300e848c0e6004a5b..558bde93bf84e45cc97e3a854bb2f125b28df091 100644
--- a/webrtc/api/rtcstatsreport.h
+++ b/webrtc/api/rtcstatsreport.h
@@ -58,6 +58,9 @@ class RTCStatsReport : public rtc::RefCountInterface {
const RTCStats* operator[](const std::string& id) const;
size_t size() const { return stats_.size(); }
+ // Takes ownership of all the stats in |victim|, leaving it empty.
+ void Scavenge(rtc::scoped_refptr<RTCStatsReport> victim);
hta-webrtc 2016/08/24 13:54:55 Suggest using less carnivorous language - what abo
hbos 2016/08/24 15:01:29 NomNomNom(victim) could have worked too. But OK, T
+
ConstIterator begin() const;
ConstIterator end() const;
« no previous file with comments | « no previous file | webrtc/stats/BUILD.gn » ('j') | webrtc/stats/rtcstatsreport.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698