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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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 | Annotate | Revision Log
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Called by the dispatcher when the underlying socket becomes writable again, 64 // Called by the dispatcher when the underlying socket becomes writable again,
65 // since we might need to send pending public reset packets which we didn't 65 // since we might need to send pending public reset packets which we didn't
66 // send because the underlying socket was write blocked. 66 // send because the underlying socket was write blocked.
67 virtual bool OnCanWrite() OVERRIDE; 67 virtual bool OnCanWrite() OVERRIDE;
68 68
69 // Used to delete guid entries that have outlived their time wait period. 69 // Used to delete guid entries that have outlived their time wait period.
70 void CleanUpOldGuids(); 70 void CleanUpOldGuids();
71 71
72 // FramerVisitorInterface 72 // FramerVisitorInterface
73 virtual void OnError(QuicFramer* framer) OVERRIDE; 73 virtual void OnError(QuicFramer* framer) OVERRIDE;
74 virtual bool OnProtocolVersionMismatch( 74 virtual bool OnProtocolVersionMismatch(QuicTag received_version) OVERRIDE;
75 QuicVersionTag received_version) OVERRIDE;
76 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; 75 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE;
77 virtual void OnPacket() OVERRIDE {} 76 virtual void OnPacket() OVERRIDE {}
78 virtual void OnPublicResetPacket( 77 virtual void OnPublicResetPacket(
79 const QuicPublicResetPacket& packet) OVERRIDE {} 78 const QuicPublicResetPacket& packet) OVERRIDE {}
80 virtual void OnVersionNegotiationPacket( 79 virtual void OnVersionNegotiationPacket(
81 const QuicVersionNegotiationPacket& /*packet*/) OVERRIDE {} 80 const QuicVersionNegotiationPacket& /*packet*/) OVERRIDE {}
82 81
83 virtual void OnPacketComplete() OVERRIDE {} 82 virtual void OnPacketComplete() OVERRIDE {}
84 // The following methods should never get called because we always return 83 // The following methods should never get called because we always return
85 // false from OnPacketHeader(). We never need to process body of a packet. 84 // false from OnPacketHeader(). We never need to process body of a packet.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // on sendmsg. 171 // on sendmsg.
173 bool is_write_blocked_; 172 bool is_write_blocked_;
174 173
175 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); 174 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager);
176 }; 175 };
177 176
178 } // namespace tools 177 } // namespace tools
179 } // namespace net 178 } // namespace net
180 179
181 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ 180 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_server_stream_test.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