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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h

Issue 2156063002: Preparation for new Promise-based RTCPeerConnection.getStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master 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/RTCStatsResponse.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h
index f70036180e26cb459627d269283e4f7c1a1c71b2..8f30b825266082941a1f22553fa120b592a64050 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h
@@ -26,7 +26,7 @@
#define RTCStatsResponse_h
#include "bindings/core/v8/ScriptWrappable.h"
-#include "modules/peerconnection/RTCStatsReport.h"
+#include "modules/peerconnection/RTCLegacyStatsReport.h"
#include "platform/heap/Handle.h"
#include "platform/peerconnection/RTCStatsResponseBase.h"
#include "wtf/HashMap.h"
@@ -40,9 +40,9 @@ class RTCStatsResponse final : public RTCStatsResponseBase, public ScriptWrappab
public:
static RTCStatsResponse* create();
- const HeapVector<Member<RTCStatsReport>>& result() const { return m_result; }
+ const HeapVector<Member<RTCLegacyStatsReport>>& result() const { return m_result; }
- RTCStatsReport* namedItem(const AtomicString& name);
+ RTCLegacyStatsReport* namedItem(const AtomicString& name);
size_t addReport(const String& id, const String& type, double timestamp) override;
void addStatistic(size_t report, const String& name, const String& value) override;
@@ -52,7 +52,7 @@ public:
private:
RTCStatsResponse();
- HeapVector<Member<RTCStatsReport>> m_result;
+ HeapVector<Member<RTCLegacyStatsReport>> m_result;
HashMap<String, int> m_idmap;
};

Powered by Google App Engine
This is Rietveld 408576698