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

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

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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_client_session_test.cc ('k') | net/tools/quic/quic_server.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 <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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 return new QuicDefaultPacketWriter(fd); 357 return new QuicDefaultPacketWriter(fd);
358 } 358 }
359 359
360 QuicSession* QuicDispatcher::CreateQuicSession( 360 QuicSession* QuicDispatcher::CreateQuicSession(
361 QuicConnectionId connection_id, 361 QuicConnectionId connection_id,
362 const IPEndPoint& server_address, 362 const IPEndPoint& server_address,
363 const IPEndPoint& client_address) { 363 const IPEndPoint& client_address) {
364 QuicServerSession* session = new QuicServerSession( 364 QuicServerSession* session = new QuicServerSession(
365 config_, 365 config_,
366 CreateQuicConnection(connection_id, server_address, client_address), 366 CreateQuicConnection(connection_id, server_address, client_address),
367 this); 367 this,
368 crypto_config_.HasProofSource());
368 session->InitializeSession(crypto_config_); 369 session->InitializeSession(crypto_config_);
369 return session; 370 return session;
370 } 371 }
371 372
372 QuicConnection* QuicDispatcher::CreateQuicConnection( 373 QuicConnection* QuicDispatcher::CreateQuicConnection(
373 QuicConnectionId connection_id, 374 QuicConnectionId connection_id,
374 const IPEndPoint& server_address, 375 const IPEndPoint& server_address,
375 const IPEndPoint& client_address) { 376 const IPEndPoint& client_address) {
376 return new QuicConnection(connection_id, 377 return new QuicConnection(connection_id,
377 client_address, 378 client_address,
(...skipping 21 matching lines...) Expand all
399 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( 400 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId(
400 header.connection_id)); 401 header.connection_id));
401 402
402 // Continue parsing the packet to extract the sequence number. Then 403 // Continue parsing the packet to extract the sequence number. Then
403 // send it to the time wait manager in OnUnathenticatedHeader. 404 // send it to the time wait manager in OnUnathenticatedHeader.
404 return true; 405 return true;
405 } 406 }
406 407
407 } // namespace tools 408 } // namespace tools
408 } // namespace net 409 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698