Index: webrtc/p2p/base/port.h |
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h |
index 65932b9c9f0f400636fca9f558a2bc04b68456de..75cea2976f60f5f9c6a68b552ded01e7751c9819 100644 |
--- a/webrtc/p2p/base/port.h |
+++ b/webrtc/p2p/base/port.h |
@@ -178,7 +178,7 @@ class Port : public PortInterface, public rtc::MessageHandler, |
} |
// Identifies the generation that this port was created in. |
- uint32_t generation() { return generation_; } |
+ uint32_t generation() const { return generation_; } |
void set_generation(uint32_t generation) { generation_ = generation; } |
const std::string username_fragment() const; |
@@ -502,6 +502,8 @@ class Connection : public CandidatePairInterface, |
// side stops using it as well. |
bool pruned() const { return pruned_; } |
void Prune(); |
+ // Called when the state is WRITE_TIMEOUT but need to be reset and un-pruned. |
+ void ResetWriteStateAndUnprune(); |
bool use_candidate_attr() const { return use_candidate_attr_; } |
void set_use_candidate_attr(bool enable); |
@@ -542,6 +544,8 @@ class Connection : public CandidatePairInterface, |
// Handles the binding request; sends a response if this is a valid request. |
void HandleBindingRequest(IceMessage* msg); |
+ int64_t last_data_received() const { return last_data_received_; } |
+ |
// Debugging description of this connection |
std::string ToDebugId() const; |
std::string ToString() const; |