Index: webrtc/p2p/base/port.h |
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h |
index 65932b9c9f0f400636fca9f558a2bc04b68456de..2ce098988213b5951f2d473e99f7e8f5dbfb72d3 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; |
@@ -542,6 +542,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; |