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

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

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (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
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_simple_server_session_helper.h" 5 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 QuicSimpleServerSessionHelper::QuicSimpleServerSessionHelper(QuicRandom* random) 9 QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper(
10 QuicRandom* random)
10 : random_(random) {} 11 : random_(random) {}
11 12
12 QuicSimpleServerSessionHelper::~QuicSimpleServerSessionHelper() {} 13 QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {}
13 14
14 QuicConnectionId QuicSimpleServerSessionHelper::GenerateConnectionIdForReject( 15 QuicConnectionId
16 QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject(
15 QuicConnectionId /*connection_id*/) const { 17 QuicConnectionId /*connection_id*/) const {
16 return random_->RandUint64(); 18 return random_->RandUint64();
17 } 19 }
18 20
19 bool QuicSimpleServerSessionHelper::CanAcceptClientHello( 21 bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello(
20 const CryptoHandshakeMessage& message, 22 const CryptoHandshakeMessage& message,
21 const IPEndPoint& self_address, 23 const IPEndPoint& self_address,
22 std::string* error_details) const { 24 std::string* error_details) const {
23 return true; 25 return true;
24 } 26 }
25 27
26 } // namespace net 28 } // namespace net
29
30
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698