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

Unified Diff: webrtc/api/rtcstatscollector.h

Issue 2243123002: RTCCertificateStats added. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added tracking bug reference to RTCPeerConnectionStats and Rebase master Created 4 years, 3 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/rtcstatscollector_unittest.cc » ('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 61edc52d0d2a89ff8c2b2fd27a391abc85c17625..0eaba37d39771bc5d7959c54767bd5cec19acf2d 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(
hta-webrtc 2016/09/29 13:22:58 Why the _s suffix? (here and elsewhere)
hbos 2016/10/03 12:11:59 _s for stuff to be executed on the signaling threa
+ RTCStatsReport* report, int64_t timestamp_us,
+ const SessionStats& session_stats) const;
hta-webrtc 2016/09/29 13:22:58 Order of arguments: First inputs, then outputs. h
hbos 2016/10/03 12:11:59 Done.
+ void ProduceCertificateStatsFromSSLCertificateAndChain_s(
+ RTCStatsReport* report, int64_t timestamp_us,
+ const rtc::SSLCertificate* certificate) const;
+ void ProducePeerConnectionStats_s(
+ RTCStatsReport* report, int64_t timestamp_us) const;
PeerConnection* const pc_;
rtc::Thread* const signaling_thread_;
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/rtcstatscollector_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698