Chromium Code Reviews| Index: webrtc/api/rtcstatscollector.h | 
| diff --git a/webrtc/api/rtcstatscollector.h b/webrtc/api/rtcstatscollector.h | 
| index 61edc52d0d2a89ff8c2b2fd27a391abc85c17625..fda693e4c2cf09ca89784ee332a394e0abae6365 100644 | 
| --- a/webrtc/api/rtcstatscollector.h | 
| +++ b/webrtc/api/rtcstatscollector.h | 
| @@ -21,9 +21,16 @@ | 
| #include "webrtc/base/scoped_ref_ptr.h" | 
| #include "webrtc/base/timeutils.h" | 
| +namespace rtc { | 
| + | 
| +class SSLCertificate; | 
| + | 
| +} // namespace rtc | 
| + | 
| namespace webrtc { | 
| class PeerConnection; | 
| +struct SessionStats; | 
| class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface { | 
| public: | 
| @@ -69,8 +76,14 @@ class RTCStatsCollector : public virtual rtc::RefCountInterface { | 
| void AddPartialResults_s(rtc::scoped_refptr<RTCStatsReport> partial_report); | 
| void DeliverCachedReport(); | 
| - std::unique_ptr<RTCPeerConnectionStats> ProducePeerConnectionStats_s( | 
| - int64_t timestamp_us) const; | 
| + void ProduceCertificateStats_s( | 
| + int64_t timestamp_us, const SessionStats& session_stats, | 
| + RTCStatsReport* report) const; | 
| + void ProduceCertificateStatsFromSSLCertificateAndChain_s( | 
| + int64_t timestamp_us, const rtc::SSLCertificate* certificate, | 
| 
 
hta-webrtc
2016/10/03 14:51:36
Any particular reason this isn't a reference? Can
 
hbos
2016/10/03 15:38:49
Mistake. Made it const&.
 
 | 
| + RTCStatsReport* report) const; | 
| + void ProducePeerConnectionStats_s( | 
| + int64_t timestamp_us, RTCStatsReport* report) const; | 
| PeerConnection* const pc_; | 
| rtc::Thread* const signaling_thread_; |