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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 1 month 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 | Annotate | Revision Log
« 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 guids in time wait state by discarding the packet and 5 // Handles packets for guids in time wait state by discarding the packet and
6 // sending the clients a public reset packet with exponential backoff. 6 // sending the clients a public reset packet with exponential backoff.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
9 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 9 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
10 10
(...skipping 19 matching lines...) Expand all
30 // decides whether we should send a public reset packet to the client which sent 30 // decides whether we should send a public reset packet to the client which sent
31 // a packet with the guid in time wait state and sends it when appropriate. 31 // a packet with the guid in time wait state and sends it when appropriate.
32 // After the guid expires its time wait period, a new connection/session will be 32 // After the guid expires its time wait period, a new connection/session will be
33 // created if a packet is received for this guid. 33 // created if a packet is received for this guid.
34 class QuicTimeWaitListManager : public QuicBlockedWriterInterface, 34 class QuicTimeWaitListManager : public QuicBlockedWriterInterface,
35 public QuicFramerVisitorInterface { 35 public QuicFramerVisitorInterface {
36 public: 36 public:
37 // writer - the entity that writes to the socket. (Owned by the dispatcher) 37 // writer - the entity that writes to the socket. (Owned by the dispatcher)
38 // epoll_server - used to run clean up alarms. (Owned by the dispatcher) 38 // epoll_server - used to run clean up alarms. (Owned by the dispatcher)
39 QuicTimeWaitListManager(QuicPacketWriter* writer, 39 QuicTimeWaitListManager(QuicPacketWriter* writer,
40 EpollServer* epoll_server); 40 EpollServer* epoll_server,
41 const QuicVersionVector& supported_versions);
41 virtual ~QuicTimeWaitListManager(); 42 virtual ~QuicTimeWaitListManager();
42 43
43 // Adds the given guid to time wait state for kTimeWaitPeriod. Henceforth, 44 // Adds the given guid to time wait state for kTimeWaitPeriod. Henceforth,
44 // any packet bearing this guid should not be processed while the guid remains 45 // any packet bearing this guid should not be processed while the guid remains
45 // in this list. Public reset packets are sent to the clients by the time wait 46 // in this list. Public reset packets are sent to the clients by the time wait
46 // list manager that send packets to guids in this state. DCHECKs that guid is 47 // list manager that send packets to guids in this state. DCHECKs that guid is
47 // not already on the list. Pass in the version as well so that if a public 48 // not already on the list. Pass in the version as well so that if a public
48 // reset packet needs to be sent the framer version can be set first. 49 // reset packet needs to be sent the framer version can be set first.
49 void AddGuidToTimeWait(QuicGuid guid, QuicVersion version); 50 void AddGuidToTimeWait(QuicGuid guid, QuicVersion version);
50 51
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // on sendmsg. 186 // on sendmsg.
186 bool is_write_blocked_; 187 bool is_write_blocked_;
187 188
188 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); 189 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager);
189 }; 190 };
190 191
191 } // namespace tools 192 } // namespace tools
192 } // namespace net 193 } // namespace net
193 194
194 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 195 #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