| Index: webrtc/p2p/base/port.h
|
| diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
|
| index f3d2110c3eb57299f074e25fe43743963897ad6c..57608b5b14deefb57277e9fa044c6d9ca9f1fbfb 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.
|
| @@ -525,6 +524,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.
|
|
|