| 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(QuicConnection* connection, | 14 QuicServerSession::QuicServerSession( |
| 15 QuicSessionOwner* owner) | 15 const QuicConfig& config, |
| 16 const QuicCryptoServerConfig& crypto_config, |
| 17 QuicConnection* connection, |
| 18 QuicSessionOwner* owner) |
| 16 : QuicSession(connection, true), | 19 : QuicSession(connection, true), |
| 17 crypto_stream_(this), | 20 crypto_stream_(config, crypto_config, this), |
| 18 owner_(owner) { | 21 owner_(owner) { |
| 19 } | 22 } |
| 20 | 23 |
| 21 QuicServerSession::~QuicServerSession() { | 24 QuicServerSession::~QuicServerSession() { |
| 22 } | 25 } |
| 23 | 26 |
| 24 void QuicServerSession::ConnectionClose(QuicErrorCode error, bool from_peer) { | 27 void QuicServerSession::ConnectionClose(QuicErrorCode error, bool from_peer) { |
| 25 QuicSession::ConnectionClose(error, from_peer); | 28 QuicSession::ConnectionClose(error, from_peer); |
| 26 owner_->OnConnectionClose(connection()->guid(), error); | 29 owner_->OnConnectionClose(connection()->guid(), error); |
| 27 } | 30 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 54 DLOG(ERROR) << "Server push not yet supported"; | 57 DLOG(ERROR) << "Server push not yet supported"; |
| 55 return NULL; | 58 return NULL; |
| 56 } | 59 } |
| 57 | 60 |
| 58 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 61 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
| 59 return &crypto_stream_; | 62 return &crypto_stream_; |
| 60 } | 63 } |
| 61 | 64 |
| 62 } // namespace tools | 65 } // namespace tools |
| 63 } // namespace net | 66 } // namespace net |
| OLD | NEW |