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