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

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

Issue 2069493002: Do not switch best connection on the controlled side too frequently (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Using a_is_better and b_is_better to replace 1 and -1 for connection comparision Created 4 years, 6 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 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;
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698