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

Side by Side Diff: net/quic/quic_crypto_server_stream.cc

Issue 2158263003: Landing Recent QUIC changes until 7/18/2016 11:21:53 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Running flag flipping script and rebase to master Created 4 years, 5 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/quic_connection.cc ('k') | net/quic/quic_crypto_server_stream_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/quic/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "crypto/secure_hash.h" 10 #include "crypto/secure_hash.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 void QuicCryptoServerStream::ValidateCallback::RunImpl( 474 void QuicCryptoServerStream::ValidateCallback::RunImpl(
475 const CryptoHandshakeMessage& client_hello, 475 const CryptoHandshakeMessage& client_hello,
476 const Result& result) { 476 const Result& result) {
477 if (parent_ != nullptr) { 477 if (parent_ != nullptr) {
478 parent_->FinishProcessingHandshakeMessage(client_hello, result); 478 parent_->FinishProcessingHandshakeMessage(client_hello, result);
479 } 479 }
480 } 480 }
481 481
482 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject( 482 QuicConnectionId QuicCryptoServerStream::GenerateConnectionIdForReject(
483 QuicConnectionId connection_id) { 483 QuicConnectionId connection_id) {
484 // TODO(rch): Remove this method when this flag is removed. 484 // TODO(rch): Remove this method when
485 if (FLAGS_quic_dispatcher_creates_id) { 485 // reloadable_flag_quic_dispatcher_creates_id2 is removed.
486 QuicServerSessionBase* session_base = 486 QuicServerSessionBase* session_base =
487 static_cast<QuicServerSessionBase*>(session()); 487 static_cast<QuicServerSessionBase*>(session());
488 return session_base->GenerateConnectionIdForReject(connection_id); 488 return session_base->GenerateConnectionIdForReject(connection_id);
489 }
490 return session()->connection()->random_generator()->RandUint64();
491 } 489 }
492 490
493 } // namespace net 491 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698