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

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

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/quic/quic_stream_factory_test.cc ('k') | net/quic/quic_unacked_packet_map.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 9 #ifndef NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
10 #define NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 10 #define NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // visitor - the entity that manages blocked writers. (The dispatcher) 45 // visitor - the entity that manages blocked writers. (The dispatcher)
46 // helper - used to run clean up alarms. (Owned by the owner of the server) 46 // helper - used to run clean up alarms. (Owned by the owner of the server)
47 QuicTimeWaitListManager(QuicPacketWriter* writer, 47 QuicTimeWaitListManager(QuicPacketWriter* writer,
48 QuicServerSessionVisitor* visitor, 48 QuicServerSessionVisitor* visitor,
49 QuicConnectionHelperInterface* helper, 49 QuicConnectionHelperInterface* helper,
50 const QuicVersionVector& supported_versions); 50 const QuicVersionVector& supported_versions);
51 virtual ~QuicTimeWaitListManager(); 51 virtual ~QuicTimeWaitListManager();
52 52
53 // Adds the given connection_id to time wait state for kTimeWaitPeriod. 53 // Adds the given connection_id to time wait state for kTimeWaitPeriod.
54 // Henceforth, any packet bearing this connection_id should not be processed 54 // Henceforth, any packet bearing this connection_id should not be processed
55 // while the connection_id remains in this list. If a non-NULL |close_packet| 55 // while the connection_id remains in this list. If a non-nullptr
56 // is provided, it is sent again when packets are received for added 56 // |close_packet| is provided, it is sent again when packets are received for
57 // connection_ids. If NULL, a public reset packet is sent with the specified 57 // added connection_ids. If nullptr, a public reset packet is sent with the
58 // |version|. DCHECKs that connection_id is not already on the list. 58 // specified |version|. DCHECKs that connection_id is not already on the list.
59 void AddConnectionIdToTimeWait(QuicConnectionId connection_id, 59 void AddConnectionIdToTimeWait(QuicConnectionId connection_id,
60 QuicVersion version, 60 QuicVersion version,
61 QuicEncryptedPacket* close_packet); // Owned. 61 QuicEncryptedPacket* close_packet); // Owned.
62 62
63 // Returns true if the connection_id is in time wait state, false otherwise. 63 // Returns true if the connection_id is in time wait state, false otherwise.
64 // Packets received for this connection_id should not lead to creation of new 64 // Packets received for this connection_id should not lead to creation of new
65 // QuicSessions. 65 // QuicSessions.
66 bool IsConnectionIdInTimeWait(QuicConnectionId connection_id) const; 66 bool IsConnectionIdInTimeWait(QuicConnectionId connection_id) const;
67 67
68 // Called when a packet is received for a connection_id that is in time wait 68 // Called when a packet is received for a connection_id that is in time wait
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Interface that manages blocked writers. 166 // Interface that manages blocked writers.
167 QuicServerSessionVisitor* visitor_; 167 QuicServerSessionVisitor* visitor_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); 169 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager);
170 }; 170 };
171 171
172 } // namespace net 172 } // namespace net
173 173
174 #endif // NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 174 #endif // NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698