| 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/crypto/source_address_token.h" | 8 #include "net/quic/crypto/cached_network_parameters.h" |
| 9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
| 10 #include "net/quic/quic_flags.h" | 10 #include "net/quic/quic_flags.h" |
| 11 #include "net/quic/reliable_quic_stream.h" | 11 #include "net/quic/reliable_quic_stream.h" |
| 12 #include "net/tools/quic/quic_spdy_server_stream.h" | 12 #include "net/tools/quic/quic_spdy_server_stream.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 namespace tools { | 15 namespace tools { |
| 16 | 16 |
| 17 QuicServerSession::QuicServerSession(const QuicConfig& config, | 17 QuicServerSession::QuicServerSession(const QuicConfig& config, |
| 18 QuicConnection* connection, | 18 QuicConnection* connection, |
| 19 QuicServerSessionVisitor* visitor, | 19 QuicServerSessionVisitor* visitor) |
| 20 bool is_secure) | 20 : QuicSession(connection, config), |
| 21 : QuicSession(connection, config, is_secure), | |
| 22 visitor_(visitor), | 21 visitor_(visitor), |
| 23 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), | 22 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), |
| 24 last_scup_time_(QuicTime::Zero()), | 23 last_scup_time_(QuicTime::Zero()), |
| 25 last_scup_sequence_number_(0) {} | 24 last_scup_sequence_number_(0) {} |
| 26 | 25 |
| 27 QuicServerSession::~QuicServerSession() {} | 26 QuicServerSession::~QuicServerSession() {} |
| 28 | 27 |
| 29 void QuicServerSession::InitializeSession( | 28 void QuicServerSession::InitializeSession( |
| 30 const QuicCryptoServerConfig& crypto_config) { | 29 const QuicCryptoServerConfig& crypto_config) { |
| 31 QuicSession::InitializeSession(); | 30 QuicSession::InitializeSession(); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 DLOG(ERROR) << "Server push not yet supported"; | 174 DLOG(ERROR) << "Server push not yet supported"; |
| 176 return nullptr; | 175 return nullptr; |
| 177 } | 176 } |
| 178 | 177 |
| 179 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 178 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
| 180 return crypto_stream_.get(); | 179 return crypto_stream_.get(); |
| 181 } | 180 } |
| 182 | 181 |
| 183 } // namespace tools | 182 } // namespace tools |
| 184 } // namespace net | 183 } // namespace net |
| OLD | NEW |