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 <stddef.h> | 12 #include <stddef.h> |
13 | 13 |
14 #include <deque> | 14 #include <deque> |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "net/base/linked_hash_map.h" | 18 #include "net/base/linked_hash_map.h" |
19 #include "net/quic/quic_blocked_writer_interface.h" | 19 #include "net/quic/core/quic_blocked_writer_interface.h" |
20 #include "net/quic/quic_connection.h" | 20 #include "net/quic/core/quic_connection.h" |
21 #include "net/quic/quic_framer.h" | 21 #include "net/quic/core/quic_framer.h" |
22 #include "net/quic/quic_packet_writer.h" | 22 #include "net/quic/core/quic_packet_writer.h" |
23 #include "net/quic/quic_protocol.h" | 23 #include "net/quic/core/quic_protocol.h" |
24 #include "net/quic/quic_server_session_base.h" | 24 #include "net/quic/core/quic_server_session_base.h" |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 | 27 |
28 namespace test { | 28 namespace test { |
29 class QuicTimeWaitListManagerPeer; | 29 class QuicTimeWaitListManagerPeer; |
30 } // namespace test | 30 } // namespace test |
31 | 31 |
32 // Maintains a list of all connection_ids that have been recently closed. A | 32 // Maintains a list of all connection_ids that have been recently closed. A |
33 // connection_id lives in this state for time_wait_period_. All packets received | 33 // connection_id lives in this state for time_wait_period_. All packets received |
34 // for connection_ids in this state are handed over to the | 34 // for connection_ids in this state are handed over to the |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 // Interface that manages blocked writers. | 196 // Interface that manages blocked writers. |
197 QuicServerSessionBase::Visitor* visitor_; | 197 QuicServerSessionBase::Visitor* visitor_; |
198 | 198 |
199 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); | 199 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); |
200 }; | 200 }; |
201 | 201 |
202 } // namespace net | 202 } // namespace net |
203 | 203 |
204 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 204 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
OLD | NEW |