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

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

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 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
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher_test.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 #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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 QuicConnectionId connection_id) { 459 QuicConnectionId connection_id) {
460 DVLOG(1) << "Connection " << connection_id << " removed from time wait list."; 460 DVLOG(1) << "Connection " << connection_id << " removed from time wait list.";
461 } 461 }
462 462
463 QuicServerSession* QuicDispatcher::CreateQuicSession( 463 QuicServerSession* QuicDispatcher::CreateQuicSession(
464 QuicConnectionId connection_id, 464 QuicConnectionId connection_id,
465 const IPEndPoint& client_address) { 465 const IPEndPoint& client_address) {
466 // The QuicServerSession takes ownership of |connection| below. 466 // The QuicServerSession takes ownership of |connection| below.
467 QuicConnection* connection = new QuicConnection( 467 QuicConnection* connection = new QuicConnection(
468 connection_id, client_address, helper_.get(), connection_writer_factory_, 468 connection_id, client_address, helper_.get(), connection_writer_factory_,
469 /* owns_writer= */ true, Perspective::IS_SERVER, 469 /* owns_writer= */ true, Perspective::IS_SERVER, supported_versions_);
470 crypto_config_->HasProofSource(), supported_versions_);
471 470
472 QuicServerSession* session = 471 QuicServerSession* session =
473 new QuicServerSession(config_, connection, this, crypto_config_); 472 new QuicServerSession(config_, connection, this, crypto_config_);
474 session->Initialize(); 473 session->Initialize();
475 if (FLAGS_quic_session_map_threshold_for_stateless_rejects != -1 && 474 if (FLAGS_quic_session_map_threshold_for_stateless_rejects != -1 &&
476 session_map_.size() >= 475 session_map_.size() >=
477 static_cast<size_t>( 476 static_cast<size_t>(
478 FLAGS_quic_session_map_threshold_for_stateless_rejects)) { 477 FLAGS_quic_session_map_threshold_for_stateless_rejects)) {
479 session->set_use_stateless_rejects_if_peer_supported(true); 478 session->set_use_stateless_rejects_if_peer_supported(true);
480 } 479 }
(...skipping 25 matching lines...) Expand all
506 // send it to the time wait manager in OnUnathenticatedHeader. 505 // send it to the time wait manager in OnUnathenticatedHeader.
507 return true; 506 return true;
508 } 507 }
509 508
510 void QuicDispatcher::SetLastError(QuicErrorCode error) { 509 void QuicDispatcher::SetLastError(QuicErrorCode error) {
511 last_error_ = error; 510 last_error_ = error;
512 } 511 }
513 512
514 } // namespace tools 513 } // namespace tools
515 } // namespace net 514 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698