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

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

Issue 2322413002: Update flags and remove obsolete flags. (Closed)
Patch Set: Created 4 years, 3 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/tools/quic/quic_simple_crypto_server_stream_helper.h ('k') | no next file » | 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
1 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" 5 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h"
2 6
3 namespace net { 7 namespace net {
4 8
5 QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper( 9 QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper(
6 QuicRandom* random) 10 QuicRandom* random)
7 : random_(random) {} 11 : random_(random) {}
8 12
9 QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {} 13 QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {}
10 14
11 QuicConnectionId 15 QuicConnectionId
12 QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject( 16 QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject(
13 QuicConnectionId /*connection_id*/) const { 17 QuicConnectionId /*connection_id*/) const {
14 return random_->RandUint64(); 18 return random_->RandUint64();
15 } 19 }
16 20
17 bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello( 21 bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello(
18 const CryptoHandshakeMessage& message, 22 const CryptoHandshakeMessage& message,
19 const IPEndPoint& self_address, 23 const IPEndPoint& self_address,
20 std::string* error_details) const { 24 std::string* error_details) const {
21 return true; 25 return true;
22 } 26 }
23 27
24 } // namespace net 28 } // namespace net
25 29
26 30
27 31
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_crypto_server_stream_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698