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

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

Issue 393953009: Moving the work currently done in the QuicSession constructor to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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_server_session.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 #include "net/quic/quic_flags.h" 9 #include "net/quic/quic_flags.h"
10 #include "net/quic/reliable_quic_stream.h" 10 #include "net/quic/reliable_quic_stream.h"
11 #include "net/tools/quic/quic_spdy_server_stream.h" 11 #include "net/tools/quic/quic_spdy_server_stream.h"
12 12
13 namespace net { 13 namespace net {
14 namespace tools { 14 namespace tools {
15 15
16 QuicServerSession::QuicServerSession(const QuicConfig& config, 16 QuicServerSession::QuicServerSession(const QuicConfig& config,
17 QuicConnection* connection, 17 QuicConnection* connection,
18 QuicServerSessionVisitor* visitor) 18 QuicServerSessionVisitor* visitor)
19 : QuicSession(connection, config), 19 : QuicSession(connection, config),
20 visitor_(visitor) {} 20 visitor_(visitor) {}
21 21
22 QuicServerSession::~QuicServerSession() {} 22 QuicServerSession::~QuicServerSession() {}
23 23
24 void QuicServerSession::InitializeSession( 24 void QuicServerSession::InitializeSession(
25 const QuicCryptoServerConfig& crypto_config) { 25 const QuicCryptoServerConfig& crypto_config) {
26 QuicSession::InitializeSession();
26 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); 27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config));
27 } 28 }
28 29
29 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( 30 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream(
30 const QuicCryptoServerConfig& crypto_config) { 31 const QuicCryptoServerConfig& crypto_config) {
31 return new QuicCryptoServerStream(crypto_config, this); 32 return new QuicCryptoServerStream(crypto_config, this);
32 } 33 }
33 34
34 void QuicServerSession::OnConfigNegotiated() { 35 void QuicServerSession::OnConfigNegotiated() {
35 QuicSession::OnConfigNegotiated(); 36 QuicSession::OnConfigNegotiated();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 DLOG(ERROR) << "Server push not yet supported"; 88 DLOG(ERROR) << "Server push not yet supported";
88 return NULL; 89 return NULL;
89 } 90 }
90 91
91 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 92 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
92 return crypto_stream_.get(); 93 return crypto_stream_.get();
93 } 94 }
94 95
95 } // namespace tools 96 } // namespace tools
96 } // namespace net 97 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698