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

Unified Diff: webrtc/p2p/base/port.h

Issue 1940493002: Add Stats to Stun ping. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
Index: webrtc/p2p/base/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index 7ec33bcd0b18169f22998026ee4bd19d37be8830..3ed3611f206a2eaf116e3ecbe313371fbbe86cf9 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -477,8 +477,10 @@ class Connection : public CandidatePairInterface,
// to errors.
size_t sent_discarded_packets();
size_t sent_total_packets();
+ size_t sent_ping_requests();
size_t recv_total_bytes();
size_t recv_bytes_second();
+ size_t recv_ping_responses();
sigslot::signal1<Connection*> SignalStateChange;
// Sent when the connection has decided that it is no longer of value. It
@@ -647,6 +649,8 @@ class Connection : public CandidatePairInterface,
rtc::RateTracker send_rate_tracker_;
uint32_t sent_packets_discarded_;
uint32_t sent_packets_total_;
+ uint32_t sent_ping_requests_;
+ uint32_t recv_ping_responses_;
private:
void MaybeAddPrflxCandidate(ConnectionRequest* request,

Powered by Google App Engine
This is Rietveld 408576698