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_spdy_server_stream.h" | 9 #include "net/quic/quic_spdy_server_stream.h" |
10 #include "net/quic/reliable_quic_stream.h" | 10 #include "net/quic/reliable_quic_stream.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 QuicServerSession::QuicServerSession(const QuicConfig& config, | 14 QuicServerSession::QuicServerSession( |
15 QuicConnection* connection, | 15 const QuicConfig& config, |
16 QuicServerSessionVisitor* visitor) | 16 QuicConnection* connection, |
| 17 QuicPerConnectionPacketWriter* connection_packet_writer, |
| 18 QuicServerSessionVisitor* visitor) |
17 : QuicSession(connection, config), | 19 : QuicSession(connection, config), |
| 20 connection_packet_writer_(connection_packet_writer), |
18 visitor_(visitor) {} | 21 visitor_(visitor) {} |
19 | 22 |
20 QuicServerSession::~QuicServerSession() {} | 23 QuicServerSession::~QuicServerSession() {} |
21 | 24 |
22 void QuicServerSession::InitializeSession( | 25 void QuicServerSession::InitializeSession( |
23 const QuicCryptoServerConfig& crypto_config) { | 26 const QuicCryptoServerConfig& crypto_config) { |
24 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); | 27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); |
25 } | 28 } |
26 | 29 |
27 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( | 30 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { | 75 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { |
73 DLOG(ERROR) << "Server push not yet supported"; | 76 DLOG(ERROR) << "Server push not yet supported"; |
74 return NULL; | 77 return NULL; |
75 } | 78 } |
76 | 79 |
77 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 80 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
78 return crypto_stream_.get(); | 81 return crypto_stream_.get(); |
79 } | 82 } |
80 | 83 |
81 } // namespace net | 84 } // namespace net |
OLD | NEW |