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

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

Issue 1404013002: relnote: Remove unused supported_versions argument from (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Check_QUIC_handshake_103949902
Patch Set: Created 5 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 | « no previous file | net/tools/quic/quic_time_wait_list_manager.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 <utility> 7 #include <utility>
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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 return session; 481 return session;
482 } 482 }
483 483
484 QuicTimeWaitListManager* QuicDispatcher::CreateQuicTimeWaitListManager() { 484 QuicTimeWaitListManager* QuicDispatcher::CreateQuicTimeWaitListManager() {
485 // TODO(rjshade): The QuicTimeWaitListManager should take ownership of the 485 // TODO(rjshade): The QuicTimeWaitListManager should take ownership of the
486 // per-connection packet writer. 486 // per-connection packet writer.
487 time_wait_list_writer_.reset( 487 time_wait_list_writer_.reset(
488 packet_writer_factory_->Create(writer_.get(), nullptr)); 488 packet_writer_factory_->Create(writer_.get(), nullptr));
489 return new QuicTimeWaitListManager(time_wait_list_writer_.get(), this, 489 return new QuicTimeWaitListManager(time_wait_list_writer_.get(), this,
490 helper_.get(), supported_versions()); 490 helper_.get());
491 } 491 }
492 492
493 bool QuicDispatcher::HandlePacketForTimeWait( 493 bool QuicDispatcher::HandlePacketForTimeWait(
494 const QuicPacketPublicHeader& header) { 494 const QuicPacketPublicHeader& header) {
495 if (header.reset_flag) { 495 if (header.reset_flag) {
496 // Public reset packets do not have packet numbers, so ignore the packet. 496 // Public reset packets do not have packet numbers, so ignore the packet.
497 return false; 497 return false;
498 } 498 }
499 499
500 // Switch the framer to the correct version, so that the packet number can 500 // Switch the framer to the correct version, so that the packet number can
501 // be parsed correctly. 501 // be parsed correctly.
502 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( 502 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId(
503 header.connection_id)); 503 header.connection_id));
504 504
505 // Continue parsing the packet to extract the packet number. Then 505 // Continue parsing the packet to extract the packet number. Then
506 // send it to the time wait manager in OnUnathenticatedHeader. 506 // send it to the time wait manager in OnUnathenticatedHeader.
507 return true; 507 return true;
508 } 508 }
509 509
510 void QuicDispatcher::SetLastError(QuicErrorCode error) { 510 void QuicDispatcher::SetLastError(QuicErrorCode error) {
511 last_error_ = error; 511 last_error_ = error;
512 } 512 }
513 513
514 } // namespace tools 514 } // namespace tools
515 } // namespace net 515 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/tools/quic/quic_time_wait_list_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698