| 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_base.h" | 5 #include "net/tools/quic/quic_server_session_base.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/proto/cached_network_parameters.pb.h" | 8 #include "net/quic/proto/cached_network_parameters.pb.h" |
| 9 #include "net/quic/quic_bug_tracker.h" | 9 #include "net/quic/quic_bug_tracker.h" |
| 10 #include "net/quic/quic_connection.h" | 10 #include "net/quic/quic_connection.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 compressed_certs_cache_(compressed_certs_cache), | 25 compressed_certs_cache_(compressed_certs_cache), |
| 26 visitor_(visitor), | 26 visitor_(visitor), |
| 27 bandwidth_resumption_enabled_(false), | 27 bandwidth_resumption_enabled_(false), |
| 28 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), | 28 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), |
| 29 last_scup_time_(QuicTime::Zero()), | 29 last_scup_time_(QuicTime::Zero()), |
| 30 last_scup_packet_number_(0) {} | 30 last_scup_packet_number_(0) {} |
| 31 | 31 |
| 32 QuicServerSessionBase::~QuicServerSessionBase() {} | 32 QuicServerSessionBase::~QuicServerSessionBase() {} |
| 33 | 33 |
| 34 void QuicServerSessionBase::Initialize() { | 34 void QuicServerSessionBase::Initialize() { |
| 35 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config_)); | 35 crypto_stream_.reset( |
| 36 CreateQuicCryptoServerStream(crypto_config_, compressed_certs_cache_)); |
| 36 QuicSpdySession::Initialize(); | 37 QuicSpdySession::Initialize(); |
| 37 } | 38 } |
| 38 | 39 |
| 39 void QuicServerSessionBase::OnConfigNegotiated() { | 40 void QuicServerSessionBase::OnConfigNegotiated() { |
| 40 QuicSession::OnConfigNegotiated(); | 41 QuicSession::OnConfigNegotiated(); |
| 41 | 42 |
| 42 if (!config()->HasReceivedConnectionOptions()) { | 43 if (!config()->HasReceivedConnectionOptions()) { |
| 43 return; | 44 return; |
| 44 } | 45 } |
| 45 | 46 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 return false; | 209 return false; |
| 209 } | 210 } |
| 210 return true; | 211 return true; |
| 211 } | 212 } |
| 212 | 213 |
| 213 QuicCryptoServerStreamBase* QuicServerSessionBase::GetCryptoStream() { | 214 QuicCryptoServerStreamBase* QuicServerSessionBase::GetCryptoStream() { |
| 214 return crypto_stream_.get(); | 215 return crypto_stream_.get(); |
| 215 } | 216 } |
| 216 | 217 |
| 217 } // namespace net | 218 } // namespace net |
| OLD | NEW |