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

Unified Diff: net/tools/quic/quic_time_wait_list_manager.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: net/tools/quic/quic_time_wait_list_manager.h
diff --git a/net/tools/quic/quic_time_wait_list_manager.h b/net/tools/quic/quic_time_wait_list_manager.h
index cf049ed1217d24e728aefc08735d8caa8495fb2b..a00a646de86f7d2ff7de44766e15e8fe338a4cae 100644
--- a/net/tools/quic/quic_time_wait_list_manager.h
+++ b/net/tools/quic/quic_time_wait_list_manager.h
@@ -93,6 +93,9 @@ class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
// QuicVersion associated with it.
QuicVersion GetQuicVersionFromConnectionId(QuicConnectionId connection_id);
+ // The number of connections on the time-wait list.
+ size_t num_connections() const { return connection_id_map_.size(); }
+
protected:
virtual QuicEncryptedPacket* BuildPublicReset(
const QuicPublicResetPacket& packet);

Powered by Google App Engine
This is Rietveld 408576698