| Index: net/tools/quic/quic_server_session.cc
|
| diff --git a/net/tools/quic/quic_server_session.cc b/net/tools/quic/quic_server_session.cc
|
| index 64e664d575291e9cd6a2f9a3799d7dc0d0fd37aa..1dd5748b244fd6d00d8bb91f5ef46f68157ad6f4 100644
|
| --- a/net/tools/quic/quic_server_session.cc
|
| +++ b/net/tools/quic/quic_server_session.cc
|
| @@ -16,8 +16,9 @@ namespace tools {
|
|
|
| QuicServerSession::QuicServerSession(const QuicConfig& config,
|
| QuicConnection* connection,
|
| - QuicServerSessionVisitor* visitor)
|
| - : QuicSession(connection, config),
|
| + QuicServerSessionVisitor* visitor,
|
| + bool is_secure)
|
| + : QuicSession(connection, config, is_secure),
|
| visitor_(visitor),
|
| bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
|
| last_scup_time_(QuicTime::Zero()),
|
| @@ -74,7 +75,7 @@ void QuicServerSession::OnCongestionWindowChange(QuicTime now) {
|
| const QuicSentPacketManager& sent_packet_manager =
|
| connection()->sent_packet_manager();
|
| int64 srtt_ms =
|
| - sent_packet_manager.GetRttStats()->SmoothedRtt().ToMilliseconds();
|
| + sent_packet_manager.GetRttStats()->smoothed_rtt().ToMilliseconds();
|
| int64 now_ms = now.Subtract(last_scup_time_).ToMilliseconds();
|
| int64 packets_since_last_scup =
|
| connection()->sequence_number_of_last_sent_packet() -
|
| @@ -128,7 +129,7 @@ void QuicServerSession::OnCongestionWindowChange(QuicTime now) {
|
| cached_network_params.set_max_bandwidth_timestamp_seconds(
|
| max_bandwidth_timestamp);
|
| cached_network_params.set_min_rtt_ms(
|
| - sent_packet_manager.GetRttStats()->MinRtt().ToMilliseconds());
|
| + sent_packet_manager.GetRttStats()->min_rtt().ToMilliseconds());
|
| cached_network_params.set_previous_connection_state(
|
| bandwidth_recorder.EstimateRecordedDuringSlowStart()
|
| ? CachedNetworkParameters::SLOW_START
|
|
|