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

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

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (Closed)
Patch Set: Remove simulation files from the build. 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_dispatcher.h ('k') | net/tools/quic/quic_simple_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_simple_dispatcher.h" 5 #include "net/tools/quic/quic_simple_dispatcher.h"
6 6
7 #include "net/tools/quic/quic_simple_server_session.h" 7 #include "net/tools/quic/quic_simple_server_session.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 QuicSimpleDispatcher::QuicSimpleDispatcher( 11 QuicSimpleDispatcher::QuicSimpleDispatcher(
12 const QuicConfig& config, 12 const QuicConfig& config,
13 const QuicCryptoServerConfig* crypto_config, 13 const QuicCryptoServerConfig* crypto_config,
14 QuicVersionManager* version_manager, 14 QuicVersionManager* version_manager,
15 std::unique_ptr<QuicConnectionHelperInterface> helper, 15 std::unique_ptr<QuicConnectionHelperInterface> helper,
16 std::unique_ptr<QuicServerSessionBase::Helper> session_helper, 16 std::unique_ptr<QuicCryptoServerStream::Helper> session_helper,
17 std::unique_ptr<QuicAlarmFactory> alarm_factory) 17 std::unique_ptr<QuicAlarmFactory> alarm_factory)
18 : QuicDispatcher(config, 18 : QuicDispatcher(config,
19 crypto_config, 19 crypto_config,
20 version_manager, 20 version_manager,
21 std::move(helper), 21 std::move(helper),
22 std::move(session_helper), 22 std::move(session_helper),
23 std::move(alarm_factory)) {} 23 std::move(alarm_factory)) {}
24 24
25 QuicSimpleDispatcher::~QuicSimpleDispatcher() {} 25 QuicSimpleDispatcher::~QuicSimpleDispatcher() {}
26 26
27 QuicServerSessionBase* QuicSimpleDispatcher::CreateQuicSession( 27 QuicServerSessionBase* QuicSimpleDispatcher::CreateQuicSession(
28 QuicConnectionId connection_id, 28 QuicConnectionId connection_id,
29 const IPEndPoint& client_address) { 29 const IPEndPoint& client_address) {
30 // The QuicServerSessionBase takes ownership of |connection| below. 30 // The QuicServerSessionBase takes ownership of |connection| below.
31 QuicConnection* connection = new QuicConnection( 31 QuicConnection* connection = new QuicConnection(
32 connection_id, client_address, helper(), alarm_factory(), 32 connection_id, client_address, helper(), alarm_factory(),
33 CreatePerConnectionWriter(), 33 CreatePerConnectionWriter(),
34 /* owns_writer= */ true, Perspective::IS_SERVER, GetSupportedVersions()); 34 /* owns_writer= */ true, Perspective::IS_SERVER, GetSupportedVersions());
35 35
36 QuicServerSessionBase* session = 36 QuicServerSessionBase* session =
37 new QuicSimpleServerSession(config(), connection, this, session_helper(), 37 new QuicSimpleServerSession(config(), connection, this, session_helper(),
38 crypto_config(), compressed_certs_cache()); 38 crypto_config(), compressed_certs_cache());
39 session->Initialize(); 39 session->Initialize();
40 return session; 40 return session;
41 } 41 }
42 42
43 } // namespace net 43 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_dispatcher.h ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698