Index: webrtc/p2p/base/port.h |
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h |
index 62ca3a50b78b80dab18babc2d2bd038ad9d3c44a..8cb94487d53681b8c8b4426c93049fc4d2d82b0a 100644 |
--- a/webrtc/p2p/base/port.h |
+++ b/webrtc/p2p/base/port.h |
@@ -446,7 +446,6 @@ class Connection : public rtc::MessageHandler, |
bool connected() const { return connected_; } |
bool weak() const { return !(writable() && receiving() && connected()); } |
bool active() const { |
- // TODO(honghaiz): Move from using |write_state_| to using |pruned_|. |
return write_state_ != STATE_WRITE_TIMEOUT; |
} |
// A connection is dead if it can be safely deleted. |
@@ -522,6 +521,9 @@ class Connection : public rtc::MessageHandler, |
uint32_t last_ping_sent() const { return last_ping_sent_; } |
void Ping(uint32_t now); |
void ReceivedPingResponse(); |
+ uint32_t last_ping_response_received() const { |
+ return last_ping_response_received_; |
+ } |
// Called whenever a valid ping is received on this connection. This is |
// public because the connection intercepts the first ping for us. |