OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Handles packets for connection_ids in time wait state by discarding the | 5 // Handles packets for connection_ids in time wait state by discarding the |
6 // packet and sending the clients a public reset packet with exponential | 6 // packet and sending the clients a public reset packet with exponential |
7 // backoff. | 7 // backoff. |
8 | 8 |
9 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 9 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
10 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 10 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
11 | 11 |
12 #include <deque> | 12 #include <deque> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
16 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
17 #include "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
18 #include "net/quic/quic_blocked_writer_interface.h" | 18 #include "net/quic/quic_blocked_writer_interface.h" |
19 #include "net/quic/quic_framer.h" | 19 #include "net/quic/quic_framer.h" |
20 #include "net/quic/quic_packet_writer.h" | 20 #include "net/quic/quic_packet_writer.h" |
21 #include "net/quic/quic_protocol.h" | 21 #include "net/quic/quic_protocol.h" |
22 #include "net/tools/epoll_server/epoll_server.h" | |
23 #include "net/tools/quic/quic_epoll_clock.h" | 22 #include "net/tools/quic/quic_epoll_clock.h" |
24 | 23 |
25 namespace net { | 24 namespace net { |
| 25 |
| 26 class EpollServer; |
| 27 |
26 namespace tools { | 28 namespace tools { |
27 | 29 |
28 class ConnectionIdCleanUpAlarm; | 30 class ConnectionIdCleanUpAlarm; |
29 class QuicServerSessionVisitor; | 31 class QuicServerSessionVisitor; |
30 | 32 |
31 namespace test { | 33 namespace test { |
32 class QuicTimeWaitListManagerPeer; | 34 class QuicTimeWaitListManagerPeer; |
33 } // namespace test | 35 } // namespace test |
34 | 36 |
35 // Maintains a list of all connection_ids that have been recently closed. A | 37 // Maintains a list of all connection_ids that have been recently closed. A |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Interface that manages blocked writers. | 172 // Interface that manages blocked writers. |
171 QuicServerSessionVisitor* visitor_; | 173 QuicServerSessionVisitor* visitor_; |
172 | 174 |
173 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); | 175 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); |
174 }; | 176 }; |
175 | 177 |
176 } // namespace tools | 178 } // namespace tools |
177 } // namespace net | 179 } // namespace net |
178 | 180 |
179 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 181 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
OLD | NEW |