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

Side by Side Diff: net/tools/quic/quic_time_wait_list_manager.h

Issue 1034283002: Cleanup QUIC code to sync with internal version after recent changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
16 #include "base/strings/string_piece.h"
17 #include "net/base/linked_hash_map.h" 15 #include "net/base/linked_hash_map.h"
18 #include "net/quic/quic_blocked_writer_interface.h" 16 #include "net/quic/quic_blocked_writer_interface.h"
19 #include "net/quic/quic_connection.h" 17 #include "net/quic/quic_connection.h"
20 #include "net/quic/quic_framer.h" 18 #include "net/quic/quic_framer.h"
21 #include "net/quic/quic_packet_writer.h" 19 #include "net/quic/quic_packet_writer.h"
22 #include "net/quic/quic_protocol.h" 20 #include "net/quic/quic_protocol.h"
23 21
24 namespace net { 22 namespace net {
25
26 namespace tools { 23 namespace tools {
27 24
28 class ConnectionIdCleanUpAlarm;
29 class QuicServerSessionVisitor; 25 class QuicServerSessionVisitor;
30 26
31 namespace test { 27 namespace test {
32 class QuicTimeWaitListManagerPeer; 28 class QuicTimeWaitListManagerPeer;
33 } // namespace test 29 } // namespace test
34 30
35 // Maintains a list of all connection_ids that have been recently closed. A 31 // Maintains a list of all connection_ids that have been recently closed. A
36 // connection_id lives in this state for time_wait_period_. All packets received 32 // connection_id lives in this state for time_wait_period_. All packets received
37 // for connection_ids in this state are handed over to the 33 // for connection_ids in this state are handed over to the
38 // QuicTimeWaitListManager by the QuicDispatcher. Decides whether to send a 34 // QuicTimeWaitListManager by the QuicDispatcher. Decides whether to send a
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Interface that manages blocked writers. 181 // Interface that manages blocked writers.
186 QuicServerSessionVisitor* visitor_; 182 QuicServerSessionVisitor* visitor_;
187 183
188 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); 184 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager);
189 }; 185 };
190 186
191 } // namespace tools 187 } // namespace tools
192 } // namespace net 188 } // namespace net
193 189
194 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 190 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698