| 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/crypto/source_address_token.h" | 8 #include "net/quic/crypto/source_address_token.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/quic_spdy_server_stream.h" | 11 #include "net/quic/quic_spdy_server_stream.h" |
| 12 #include "net/quic/reliable_quic_stream.h" | 12 #include "net/quic/reliable_quic_stream.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 QuicServerSession::QuicServerSession( | 16 QuicServerSession::QuicServerSession(const QuicConfig& config, |
| 17 const QuicConfig& config, | 17 QuicConnection* connection, |
| 18 QuicConnection* connection, | 18 QuicServerSessionVisitor* visitor) |
| 19 QuicServerSessionVisitor* visitor) | |
| 20 : QuicSession(connection, config), | 19 : QuicSession(connection, config), |
| 21 visitor_(visitor), | 20 visitor_(visitor), |
| 22 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), | 21 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), |
| 23 last_server_config_update_time_(QuicTime::Zero()) {} | 22 last_server_config_update_time_(QuicTime::Zero()) {} |
| 24 | 23 |
| 25 QuicServerSession::~QuicServerSession() {} | 24 QuicServerSession::~QuicServerSession() {} |
| 26 | 25 |
| 27 void QuicServerSession::InitializeSession( | 26 void QuicServerSession::InitializeSession( |
| 28 const QuicCryptoServerConfig& crypto_config) { | 27 const QuicCryptoServerConfig& crypto_config) { |
| 29 QuicSession::InitializeSession(); | 28 QuicSession::InitializeSession(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { | 165 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { |
| 167 DLOG(ERROR) << "Server push not yet supported"; | 166 DLOG(ERROR) << "Server push not yet supported"; |
| 168 return nullptr; | 167 return nullptr; |
| 169 } | 168 } |
| 170 | 169 |
| 171 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 170 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
| 172 return crypto_stream_.get(); | 171 return crypto_stream_.get(); |
| 173 } | 172 } |
| 174 | 173 |
| 175 } // namespace net | 174 } // namespace net |
| OLD | NEW |