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( | 14 QuicServerSession::QuicServerSession( |
15 const QuicConfig& config, | 15 const QuicConfig& config, |
16 QuicConnection* connection, | 16 QuicConnection* connection, |
17 QuicConnectionPacketWriterWrapper* connection_packet_writer, | 17 QuicConnectionPacketWriterWrapper* connection_packet_writer, |
18 QuicServerSessionVisitor* visitor) | 18 QuicServerSessionVisitor* visitor) |
19 : QuicSession(connection, config), | 19 : QuicSession(connection, config), |
20 connection_packet_writer_(connection_packet_writer), | 20 connection_packet_writer_(connection_packet_writer), |
21 visitor_(visitor) {} | 21 visitor_(visitor) { |
Ryan Hamilton
2014/06/20 00:24:09
I'd revert this, unless you're planning to merge t
dmziegler
2014/06/20 01:16:40
Done.
| |
22 } | |
22 | 23 |
23 QuicServerSession::~QuicServerSession() {} | 24 QuicServerSession::~QuicServerSession() {} |
24 | 25 |
25 void QuicServerSession::InitializeSession( | 26 void QuicServerSession::InitializeSession( |
26 const QuicCryptoServerConfig& crypto_config) { | 27 const QuicCryptoServerConfig& crypto_config) { |
27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); | 28 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); |
28 } | 29 } |
29 | 30 |
30 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( | 31 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( |
31 const QuicCryptoServerConfig& crypto_config) { | 32 const QuicCryptoServerConfig& crypto_config) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { | 76 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { |
76 DLOG(ERROR) << "Server push not yet supported"; | 77 DLOG(ERROR) << "Server push not yet supported"; |
77 return NULL; | 78 return NULL; |
78 } | 79 } |
79 | 80 |
80 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 81 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
81 return crypto_stream_.get(); | 82 return crypto_stream_.get(); |
82 } | 83 } |
83 | 84 |
84 } // namespace net | 85 } // namespace net |
OLD | NEW |