| 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 8e6f70ed791f1734cd2a2d2448baf5563d94b160..70a6d0deecd9f0609564efc11cc296760d26cada 100644
|
| --- a/net/tools/quic/quic_time_wait_list_manager.h
|
| +++ b/net/tools/quic/quic_time_wait_list_manager.h
|
| @@ -24,6 +24,7 @@ namespace net {
|
| namespace tools {
|
|
|
| class GuidCleanUpAlarm;
|
| +class QuicServerSessionVisitor;
|
|
|
| namespace test {
|
| class QuicTimeWaitListManagerPeer;
|
| @@ -40,8 +41,10 @@ class QuicTimeWaitListManagerPeer;
|
| class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
|
| public:
|
| // writer - the entity that writes to the socket. (Owned by the dispatcher)
|
| + // visitor - the entity that manages blocked writers. (The dispatcher)
|
| // epoll_server - used to run clean up alarms. (Owned by the dispatcher)
|
| QuicTimeWaitListManager(QuicPacketWriter* writer,
|
| + QuicServerSessionVisitor* visitor,
|
| EpollServer* epoll_server,
|
| const QuicVersionVector& supported_versions);
|
| virtual ~QuicTimeWaitListManager();
|
| @@ -138,7 +141,7 @@ class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
|
| std::deque<QueuedPacket*> pending_packets_queue_;
|
|
|
| // Used to schedule alarms to delete old guids which have been in the list for
|
| - // too long. Owned by the dispatcher.
|
| + // too long.
|
| EpollServer* epoll_server_;
|
|
|
| // Time period for which guids should remain in time wait state.
|
| @@ -151,9 +154,12 @@ class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
|
| // Clock to efficiently measure approximate time from the epoll server.
|
| QuicEpollClock clock_;
|
|
|
| - // Interface that writes given buffer to the socket. Owned by the dispatcher.
|
| + // Interface that writes given buffer to the socket.
|
| QuicPacketWriter* writer_;
|
|
|
| + // Interface that manages blocked writers.
|
| + QuicServerSessionVisitor* visitor_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager);
|
| };
|
|
|
|
|