OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_server_session.h" | 5 #include "net/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/quic_spdy_server_stream.h" | 10 #include "net/quic/quic_spdy_server_stream.h" |
11 #include "net/quic/reliable_quic_stream.h" | 11 #include "net/quic/reliable_quic_stream.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 QuicServerSession::QuicServerSession( | 15 QuicServerSession::QuicServerSession( |
16 const QuicConfig& config, | 16 const QuicConfig& config, |
17 QuicConnection* connection, | 17 QuicConnection* connection, |
18 QuicPerConnectionPacketWriter* connection_packet_writer, | |
19 QuicServerSessionVisitor* visitor) | 18 QuicServerSessionVisitor* visitor) |
20 : QuicSession(connection, config), | 19 : QuicSession(connection, config), |
21 connection_packet_writer_(connection_packet_writer), | |
22 visitor_(visitor) {} | 20 visitor_(visitor) {} |
23 | 21 |
24 QuicServerSession::~QuicServerSession() {} | 22 QuicServerSession::~QuicServerSession() {} |
25 | 23 |
26 void QuicServerSession::InitializeSession( | 24 void QuicServerSession::InitializeSession( |
27 const QuicCryptoServerConfig& crypto_config) { | 25 const QuicCryptoServerConfig& crypto_config) { |
28 QuicSession::InitializeSession(); | 26 QuicSession::InitializeSession(); |
29 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); | 27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); |
30 } | 28 } |
31 | 29 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { | 87 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { |
90 DLOG(ERROR) << "Server push not yet supported"; | 88 DLOG(ERROR) << "Server push not yet supported"; |
91 return NULL; | 89 return NULL; |
92 } | 90 } |
93 | 91 |
94 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 92 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
95 return crypto_stream_.get(); | 93 return crypto_stream_.get(); |
96 } | 94 } |
97 | 95 |
98 } // namespace net | 96 } // namespace net |
OLD | NEW |