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

Unified Diff: third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)
Patch Set: Addressed comments 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
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;

Powered by Google App Engine
This is Rietveld 408576698