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

Unified Diff: webrtc/api/rtcstatscollector.h

Issue 2243123002: RTCCertificateStats added. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments 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') | no next file with comments »
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 61edc52d0d2a89ff8c2b2fd27a391abc85c17625..2f5ed8610a6399fc57ea59bd085bcb9beadd08ac 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,
+ RTCStatsReport* report) const;
+ void ProducePeerConnectionStats_s(
+ int64_t timestamp_us, RTCStatsReport* report) const;
PeerConnection* const pc_;
rtc::Thread* const signaling_thread_;
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698