Index: webrtc/api/rtcstatscollector.h |
diff --git a/webrtc/api/rtcstatscollector.h b/webrtc/api/rtcstatscollector.h |
index 712f9e29494a8e813242580b769de974f1b41cef..8663e32582e04fc5d86bfd77d00ab44e5bd9e03c 100644 |
--- a/webrtc/api/rtcstatscollector.h |
+++ b/webrtc/api/rtcstatscollector.h |
@@ -11,6 +11,7 @@ |
#ifndef WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
#define WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
+#include <map> |
#include <memory> |
#include <vector> |
@@ -75,14 +76,20 @@ class RTCStatsCollector : public virtual rtc::RefCountInterface { |
const rtc::scoped_refptr<RTCStatsReport>& partial_report); |
private: |
+ struct CertificateStatsPair { |
+ CertificateStatsPair() : local(nullptr), remote(nullptr) {} |
+ RTCCertificateStats* local; |
+ RTCCertificateStats* remote; |
+ }; |
+ |
void AddPartialResults_s(rtc::scoped_refptr<RTCStatsReport> partial_report); |
void DeliverCachedReport(); |
// Produces |RTCCertificateStats|. |
- void ProduceCertificateStats_s( |
+ std::map<std::string, CertificateStatsPair> ProduceCertificateStats_s( |
int64_t timestamp_us, const SessionStats& session_stats, |
RTCStatsReport* report) const; |
hta-webrtc
2016/10/12 22:52:35
This is now doing more than producing certificate
hbos
2016/10/17 19:33:13
Code changed to not do two things.
|
- void ProduceCertificateStatsFromSSLCertificateAndChain_s( |
+ RTCCertificateStats* ProduceCertificateStatsFromSSLCertificateAndChain_s( |
int64_t timestamp_us, const rtc::SSLCertificate& certificate, |
RTCStatsReport* report) const; |
// Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. |
@@ -95,6 +102,11 @@ class RTCStatsCollector : public virtual rtc::RefCountInterface { |
// Produces |RTCPeerConnectionStats|. |
void ProducePeerConnectionStats_s( |
int64_t timestamp_us, RTCStatsReport* report) const; |
+ // Produces |RTCTransportStats|. |
+ void ProduceTransportStats_s( |
+ int64_t timestamp_us, const SessionStats& session_stats, |
+ const std::map<std::string, CertificateStatsPair>& transport_certificates, |
+ RTCStatsReport* report) const; |
PeerConnection* const pc_; |
rtc::Thread* const signaling_thread_; |