| Index: webrtc/api/rtcstatsreport.h
|
| diff --git a/webrtc/api/rtcstatsreport.h b/webrtc/api/rtcstatsreport.h
|
| index 42237eba725ce687ab7dc01300e848c0e6004a5b..fbd78b93f4e970ff0ca43c737404f4bfa6a18a2d 100644
|
| --- a/webrtc/api/rtcstatsreport.h
|
| +++ b/webrtc/api/rtcstatsreport.h
|
| @@ -55,9 +55,13 @@ class RTCStatsReport : public rtc::RefCountInterface {
|
| RTCStatsReport(const RTCStatsReport& other) = delete;
|
|
|
| bool AddStats(std::unique_ptr<const RTCStats> stats);
|
| - const RTCStats* operator[](const std::string& id) const;
|
| + const RTCStats* Get(const std::string& id) const;
|
| size_t size() const { return stats_.size(); }
|
|
|
| + // Takes ownership of all the stats in |victim|, leaving it empty.
|
| + void TakeMembersFrom(rtc::scoped_refptr<RTCStatsReport> victim);
|
| +
|
| + // Stats iterators. Stats are ordered lexicographically on |RTCStats::id|.
|
| ConstIterator begin() const;
|
| ConstIterator end() const;
|
|
|
|
|