Index: net/tools/quic/quic_dispatcher.h |
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h |
index 8f5db502c5d0fff2131f55bd72bf38b1fe78836b..229362975f6e0b411ad9c81e48f579fc2936679c 100644 |
--- a/net/tools/quic/quic_dispatcher.h |
+++ b/net/tools/quic/quic_dispatcher.h |
@@ -37,7 +37,7 @@ namespace test { |
class QuicDispatcherPeer; |
} // namespace test |
-class QuicDispatcher : public QuicServerSessionBase::Visitor, |
+class QuicDispatcher : public QuicTimeWaitListManager::Visitor, |
public ProcessPacketInterface, |
public QuicBlockedWriterInterface, |
public QuicFramerVisitorInterface, |
@@ -76,21 +76,24 @@ class QuicDispatcher : public QuicServerSessionBase::Visitor, |
// Sends ConnectionClose frames to all connected clients. |
void Shutdown(); |
- // QuicServerSessionBase::Visitor interface implementation: |
+ // QuicSession::Visitor interface implementation (via inheritance of |
+ // QuicTimeWaitListManager::Visitor): |
// Ensure that the closed connection is cleaned up asynchronously. |
void OnConnectionClosed(QuicConnectionId connection_id, |
QuicErrorCode error, |
const std::string& error_details) override; |
+ // QuicSession::Visitor interface implementation (via inheritance of |
+ // QuicTimeWaitListManager::Visitor): |
// Queues the blocked writer for later resumption. |
void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) override; |
- // Called whenever the time wait list manager adds a new connection to the |
- // time-wait list. |
+ // QuicTimeWaitListManager::Visitor interface implementation |
+ // Called whenever the time wait std::list manager adds a new connection to |
+ // the |
+ // time-wait std::list. |
void OnConnectionAddedToTimeWaitList(QuicConnectionId connection_id) override; |
- void OnPacketBeingDispatchedToSession(QuicSession* session) override {} |
- |
using SessionMap = |
std::unordered_map<QuicConnectionId, std::unique_ptr<QuicSession>>; |