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

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

Issue 14287009: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with Tot Created 7 years, 8 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
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager.h ('k') | no next file » | 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 #include "net/tools/quic/quic_time_wait_list_manager.h" 5 #include "net/tools/quic/quic_time_wait_list_manager.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void QuicTimeWaitListManager::OnError(QuicFramer* framer) { 154 void QuicTimeWaitListManager::OnError(QuicFramer* framer) {
155 DLOG(INFO) << QuicUtils::ErrorToString(framer->error()); 155 DLOG(INFO) << QuicUtils::ErrorToString(framer->error());
156 } 156 }
157 157
158 bool QuicTimeWaitListManager::OnProtocolVersionMismatch( 158 bool QuicTimeWaitListManager::OnProtocolVersionMismatch(
159 QuicVersionTag received_version) { 159 QuicVersionTag received_version) {
160 // Drop such packets whose version don't match. 160 // Drop such packets whose version don't match.
161 return false; 161 return false;
162 } 162 }
163 163
164 bool QuicTimeWaitListManager::OnStreamFrame(const QuicStreamFrame& frame) {
165 return false;
166 }
167
168 bool QuicTimeWaitListManager::OnAckFrame(const QuicAckFrame& frame) {
169 return false;
170 }
171
172 bool QuicTimeWaitListManager::OnCongestionFeedbackFrame(
173 const QuicCongestionFeedbackFrame& frame) {
174 return false;
175 }
176
177 bool QuicTimeWaitListManager::OnRstStreamFrame(
178 const QuicRstStreamFrame& frame) {
179 return false;
180 }
181
182 bool QuicTimeWaitListManager::OnConnectionCloseFrame(
183 const QuicConnectionCloseFrame & frame) {
184 return false;
185 }
186
187 bool QuicTimeWaitListManager::OnGoAwayFrame(const QuicGoAwayFrame& frame) {
188 return false;
189 }
190
164 bool QuicTimeWaitListManager::OnPacketHeader(const QuicPacketHeader& header) { 191 bool QuicTimeWaitListManager::OnPacketHeader(const QuicPacketHeader& header) {
165 // TODO(satyamshekhar): Think about handling packets from different client 192 // TODO(satyamshekhar): Think about handling packets from different client
166 // addresses. 193 // addresses.
167 GuidMapIterator it = guid_map_.find(header.public_header.guid); 194 GuidMapIterator it = guid_map_.find(header.public_header.guid);
168 DCHECK(it != guid_map_.end()); 195 DCHECK(it != guid_map_.end());
169 // Increment the received packet count. 196 // Increment the received packet count.
170 ++(it->second); 197 ++(it->second);
171 if (ShouldSendPublicReset(it->second)) { 198 if (ShouldSendPublicReset(it->second)) {
172 // We don't need the packet anymore. Just tell the client what sequence 199 // We don't need the packet anymore. Just tell the client what sequence
173 // number we rejected. 200 // number we rejected.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // This guid has lived its age, retire it now. 301 // This guid has lived its age, retire it now.
275 guid_map_.erase(oldest_guid->guid); 302 guid_map_.erase(oldest_guid->guid);
276 time_ordered_guid_list_.pop_front(); 303 time_ordered_guid_list_.pop_front();
277 delete oldest_guid; 304 delete oldest_guid;
278 } 305 }
279 SetGuidCleanUpAlarm(); 306 SetGuidCleanUpAlarm();
280 } 307 }
281 308
282 } // namespace tools 309 } // namespace tools
283 } // namespace net 310 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698