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

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

Issue 1008323002: Land Recent QUIC Changes until 03/15/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0315
Patch Set: Add quic_packet_reader to BUILD.gn to fix compiler errors 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/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_packet_reader.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 (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_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // packets. 282 // packets.
283 QuicVersion version = header.versions.front(); 283 QuicVersion version = header.versions.front();
284 time_wait_list_manager_->AddConnectionIdToTimeWait(connection_id, version, 284 time_wait_list_manager_->AddConnectionIdToTimeWait(connection_id, version,
285 nullptr); 285 nullptr);
286 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(connection_id)); 286 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(connection_id));
287 HandlePacketForTimeWait(header); 287 HandlePacketForTimeWait(header);
288 288
289 return nullptr; 289 return nullptr;
290 } 290 }
291 291
292 DVLOG(1) << "Created new session for " << connection_id; 292 DVLOG(1) << "Created new session for connection ID " << connection_id;
293 session_map_.insert(std::make_pair(connection_id, session)); 293 session_map_.insert(std::make_pair(connection_id, session));
294 294
295 return session; 295 return session;
296 } 296 }
297 297
298 void QuicDispatcher::OnUnauthenticatedHeader(const QuicPacketHeader& header) { 298 void QuicDispatcher::OnUnauthenticatedHeader(const QuicPacketHeader& header) {
299 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait( 299 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(
300 header.public_header.connection_id)); 300 header.public_header.connection_id));
301 time_wait_list_manager_->ProcessPacket(current_server_address_, 301 time_wait_list_manager_->ProcessPacket(current_server_address_,
302 current_client_address_, 302 current_client_address_,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( 430 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId(
431 header.connection_id)); 431 header.connection_id));
432 432
433 // Continue parsing the packet to extract the sequence number. Then 433 // Continue parsing the packet to extract the sequence number. Then
434 // send it to the time wait manager in OnUnathenticatedHeader. 434 // send it to the time wait manager in OnUnathenticatedHeader.
435 return true; 435 return true;
436 } 436 }
437 437
438 } // namespace tools 438 } // namespace tools
439 } // namespace net 439 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_packet_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698