Index: third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h |
diff --git a/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h b/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h |
index f0663cbae4e9f4b27ecd953e1d982039b709fe18..8d5c4346e2875be8bdea780bdfc783530bb31bbf 100644 |
--- a/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h |
+++ b/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h |
@@ -31,6 +31,8 @@ |
#ifndef WebRTCPeerConnectionHandler_h |
#define WebRTCPeerConnectionHandler_h |
+#include "WebRTCStats.h" |
+ |
namespace blink { |
class WebMediaConstraints; |
@@ -81,6 +83,9 @@ public: |
virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) = 0; |
virtual void removeStream(const WebMediaStream&) = 0; |
virtual void getStats(const WebRTCStatsRequest&) = 0; |
+ // Gets stats using the new stats collection API, see third_party/webrtc/api/stats/. |
+ // These will replace the old stats collection API when the new API has matured enough. |
+ virtual void getStats(std::unique_ptr<WebRTCStatsReportCallback>) = 0; |
virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label, const WebRTCDataChannelInit&) = 0; |
virtual WebRTCDTMFSenderHandler* createDTMFSender(const WebMediaStreamTrack&) = 0; |
virtual void stop() = 0; |