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

Unified Diff: webrtc/api/rtcstatscollector.h

Issue 2420473002: RTCDataChannelStats added. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/test/mock_datachannel.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstatscollector.h
diff --git a/webrtc/api/rtcstatscollector.h b/webrtc/api/rtcstatscollector.h
index 712f9e29494a8e813242580b769de974f1b41cef..410b3bec2f73768475679fe5315c090b72a3c9e5 100644
--- a/webrtc/api/rtcstatscollector.h
+++ b/webrtc/api/rtcstatscollector.h
@@ -14,6 +14,7 @@
#include <memory>
#include <vector>
+#include "webrtc/api/datachannelinterface.h"
#include "webrtc/api/stats/rtcstats_objects.h"
#include "webrtc/api/stats/rtcstatsreport.h"
#include "webrtc/base/asyncinvoker.h"
@@ -85,6 +86,9 @@ class RTCStatsCollector : public virtual rtc::RefCountInterface {
void ProduceCertificateStatsFromSSLCertificateAndChain_s(
int64_t timestamp_us, const rtc::SSLCertificate& certificate,
RTCStatsReport* report) const;
+ // Produces |RTCDataChannelStats|.
+ void ProduceDataChannelStats_s(
+ int64_t timestamp_us, RTCStatsReport* report) const;
// Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|.
void ProduceIceCandidateAndPairStats_s(
int64_t timestamp_us, const SessionStats& session_stats,
@@ -116,8 +120,10 @@ class RTCStatsCollector : public virtual rtc::RefCountInterface {
rtc::scoped_refptr<const RTCStatsReport> cached_report_;
};
-// Helper function, exposed for unittests.
+// Helper functions, exposed for unittests.
const char* CandidateTypeToRTCIceCandidateType(const std::string& type);
+const char* DataStateToRTCDataChannelState(
hta-webrtc 2016/10/12 22:23:39 mcasas told me that functions that are exposed for
hbos 2016/10/17 17:33:16 Cool. So they're helper functions used by the .cc
+ DataChannelInterface::DataState state);
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/test/mock_datachannel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698