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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.cpp

Issue 2156063002: Preparation for new Promise-based RTCPeerConnection.getStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added UseCounter for the new getStats 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/modules/peerconnection/RTCLegacyStatsReport.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.cpp
similarity index 78%
rename from third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.cpp
rename to third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.cpp
index 043e3d78f5f26122f5104dcb0a8e63282a0964de..89ca8e802c58486e23ed2144a93605878ce41d4c 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.cpp
@@ -23,23 +23,23 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/peerconnection/RTCStatsReport.h"
+#include "modules/peerconnection/RTCLegacyStatsReport.h"
namespace blink {
-RTCStatsReport* RTCStatsReport::create(const String& id, const String& type, double timestamp)
+RTCLegacyStatsReport* RTCLegacyStatsReport::create(const String& id, const String& type, double timestamp)
{
- return new RTCStatsReport(id, type, timestamp);
+ return new RTCLegacyStatsReport(id, type, timestamp);
}
-RTCStatsReport::RTCStatsReport(const String& id, const String& type, double timestamp)
+RTCLegacyStatsReport::RTCLegacyStatsReport(const String& id, const String& type, double timestamp)
: m_id(id)
, m_type(type)
, m_timestamp(timestamp)
{
}
-Vector<String> RTCStatsReport::names() const
+Vector<String> RTCLegacyStatsReport::names() const
{
Vector<String> result;
for (HashMap<String, String>::const_iterator it = m_stats.begin(); it != m_stats.end(); ++it) {
@@ -48,7 +48,7 @@ Vector<String> RTCStatsReport::names() const
return result;
}
-void RTCStatsReport::addStatistic(const String& name, const String& value)
+void RTCLegacyStatsReport::addStatistic(const String& name, const String& value)
{
m_stats.add(name, value);
}

Powered by Google App Engine
This is Rietveld 408576698