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

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

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)
Patch Set: TODO to impl MockWebRTCPeerConnectionHandler::getStats in a follow-up instead 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/WebRTCStats.h
diff --git a/third_party/WebKit/public/platform/WebRTCStats.h b/third_party/WebKit/public/platform/WebRTCStats.h
index 6983906dee291786ca6483fb05964401f63a415f..2118e1f156026c4fe789874a1fcfe5b82ede9451 100644
--- a/third_party/WebKit/public/platform/WebRTCStats.h
+++ b/third_party/WebKit/public/platform/WebRTCStats.h
@@ -60,6 +60,7 @@ public:
virtual WebString name() const = 0;
virtual WebRTCStatsMemberType type() const = 0;
+ virtual bool isDefined() const = 0;
// Value getters. No conversion is performed; the function must match the member's |type|.
virtual int32_t valueInt32() const = 0;
@@ -76,6 +77,13 @@ public:
virtual WebVector<WebString> valueSequenceString() const = 0;
};
+class WebRTCStatsReportCallback {
+public:
+ virtual ~WebRTCStatsReportCallback() {}
+
+ virtual void OnStatsDelivered(std::unique_ptr<WebRTCStatsReport>) = 0;
+};
+
} // namespace blink
#endif // WebRTCStats_h

Powered by Google App Engine
This is Rietveld 408576698