OLD | NEW |
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/reliable_quic_stream.h" | 9 #include "net/quic/reliable_quic_stream.h" |
10 #include "net/tools/quic/quic_spdy_server_stream.h" | 10 #include "net/tools/quic/quic_spdy_server_stream.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 namespace tools { | 13 namespace tools { |
14 | 14 |
15 QuicServerSession::QuicServerSession( | 15 QuicServerSession::QuicServerSession( |
16 const QuicConfig& config, | 16 const QuicConfig& config, |
17 QuicConnection* connection, | 17 QuicConnection* connection, |
18 QuicSessionOwner* owner) | 18 QuicSessionOwner* owner) |
19 : QuicSession(connection, config, true), | 19 : QuicSession(connection, config), |
20 owner_(owner) { | 20 owner_(owner) { |
21 } | 21 } |
22 | 22 |
23 QuicServerSession::~QuicServerSession() { | 23 QuicServerSession::~QuicServerSession() { |
24 } | 24 } |
25 | 25 |
26 void QuicServerSession::InitializeSession( | 26 void QuicServerSession::InitializeSession( |
27 const QuicCryptoServerConfig& crypto_config) { | 27 const QuicCryptoServerConfig& crypto_config) { |
28 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); | 28 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); |
29 } | 29 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 DLOG(ERROR) << "Server push not yet supported"; | 67 DLOG(ERROR) << "Server push not yet supported"; |
68 return NULL; | 68 return NULL; |
69 } | 69 } |
70 | 70 |
71 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 71 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
72 return crypto_stream_.get(); | 72 return crypto_stream_.get(); |
73 } | 73 } |
74 | 74 |
75 } // namespace tools | 75 } // namespace tools |
76 } // namespace net | 76 } // namespace net |
OLD | NEW |