| Index: webrtc/api/peerconnectioninterface.h
|
| diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
|
| index d4daf2435e3ac7de78092579413fbc4aa41bd7dc..9c2301ca19d7c855433277740c1de49710f2cf56 100644
|
| --- a/webrtc/api/peerconnectioninterface.h
|
| +++ b/webrtc/api/peerconnectioninterface.h
|
| @@ -109,7 +109,14 @@ class StreamCollectionInterface : public rtc::RefCountInterface {
|
|
|
| class StatsObserver : public rtc::RefCountInterface {
|
| public:
|
| - virtual void OnComplete(const StatsReports& reports) = 0;
|
| + // TODO(nisse, hbos): Old version, not passing ownership. Should
|
| + // perhaps be deprecated, but since all of this is a legacy
|
| + // interface anyway, probably best to leave as is until this class
|
| + // can be deleted.
|
| + virtual void OnComplete(const StatsReports& reports) {}
|
| + virtual void OnCompleteReports(std::unique_ptr<StatsReports> reports) {
|
| + OnComplete(*reports);
|
| + }
|
|
|
| protected:
|
| virtual ~StatsObserver() {}
|
|
|