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

Unified Diff: third_party/WebKit/Source/platform/exported/WebRTCStatsResponse.cpp

Issue 2186853002: WebRTCStats added, retaining type info when surfacing WebRTC stats into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed tommi's comments Created 4 years, 5 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/Source/platform/exported/WebRTCStatsResponse.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebRTCStatsResponse.cpp b/third_party/WebKit/Source/platform/exported/WebRTCStatsResponse.cpp
index 05a598d4c51777f7ed76827594157db5de1db1f2..dd06f3391600da2a6a9b03baaee8abc30b89b42f 100644
--- a/third_party/WebKit/Source/platform/exported/WebRTCStatsResponse.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebRTCStatsResponse.cpp
@@ -49,16 +49,10 @@ WebRTCStatsResponse::operator RTCStatsResponseBase*() const
return m_private.get();
}
-size_t WebRTCStatsResponse::addReport(const WebString& id, const WebString& type, double timestamp)
+void WebRTCStatsResponse::addStats(const WebRTCStats& stats)
{
ASSERT(!m_private.isNull());
- return m_private->addReport(id, type, timestamp);
-}
-
-void WebRTCStatsResponse::addStatistic(size_t report, const WebString& name, const WebString& value)
-{
- ASSERT(!m_private.isNull());
- m_private->addStatistic(report, name, value);
+ m_private->addStats(stats);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698