Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: net/quic/quic_server_session.cc

Issue 667763003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Fill the proto before passing it to the crypto stream to send. 116 // Fill the proto before passing it to the crypto stream to send.
117 CachedNetworkParameters cached_network_params; 117 CachedNetworkParameters cached_network_params;
118 cached_network_params.set_bandwidth_estimate_bytes_per_second( 118 cached_network_params.set_bandwidth_estimate_bytes_per_second(
119 bandwidth_estimate_sent_to_client_.ToBytesPerSecond()); 119 bandwidth_estimate_sent_to_client_.ToBytesPerSecond());
120 cached_network_params.set_max_bandwidth_estimate_bytes_per_second( 120 cached_network_params.set_max_bandwidth_estimate_bytes_per_second(
121 max_bandwidth_estimate.ToBytesPerSecond()); 121 max_bandwidth_estimate.ToBytesPerSecond());
122 cached_network_params.set_max_bandwidth_timestamp_seconds( 122 cached_network_params.set_max_bandwidth_timestamp_seconds(
123 max_bandwidth_timestamp); 123 max_bandwidth_timestamp);
124 cached_network_params.set_min_rtt_ms( 124 cached_network_params.set_min_rtt_ms(
125 sent_packet_manager.GetRttStats()->min_rtt().ToMilliseconds()); 125 sent_packet_manager.GetRttStats()->MinRtt().ToMilliseconds());
126 cached_network_params.set_previous_connection_state( 126 cached_network_params.set_previous_connection_state(
127 bandwidth_recorder.EstimateRecordedDuringSlowStart() 127 bandwidth_recorder.EstimateRecordedDuringSlowStart()
128 ? CachedNetworkParameters::SLOW_START 128 ? CachedNetworkParameters::SLOW_START
129 : CachedNetworkParameters::CONGESTION_AVOIDANCE); 129 : CachedNetworkParameters::CONGESTION_AVOIDANCE);
130 cached_network_params.set_timestamp( 130 cached_network_params.set_timestamp(
131 connection()->clock()->WallNow().ToUNIXSeconds()); 131 connection()->clock()->WallNow().ToUNIXSeconds());
132 if (!serving_region_.empty()) { 132 if (!serving_region_.empty()) {
133 cached_network_params.set_serving_region(serving_region_); 133 cached_network_params.set_serving_region(serving_region_);
134 } 134 }
135 135
(...skipping 29 matching lines...) Expand all
165 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { 165 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() {
166 DLOG(ERROR) << "Server push not yet supported"; 166 DLOG(ERROR) << "Server push not yet supported";
167 return nullptr; 167 return nullptr;
168 } 168 }
169 169
170 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 170 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
171 return crypto_stream_.get(); 171 return crypto_stream_.get();
172 } 172 }
173 173
174 } // namespace net 174 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698