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

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

Issue 341083007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/reliable_quic_stream.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 (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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 writer->SetConnection(connection); 828 writer->SetConnection(connection);
829 connection->set_max_packet_length(max_packet_length_); 829 connection->set_max_packet_length(max_packet_length_);
830 830
831 InitializeCachedStateInCryptoConfig(server_id, server_info); 831 InitializeCachedStateInCryptoConfig(server_id, server_info);
832 832
833 QuicConfig config = config_; 833 QuicConfig config = config_;
834 config.SetInitialCongestionWindowToSend( 834 config.SetInitialCongestionWindowToSend(
835 server_id.is_https() ? kServerSecureInitialCongestionWindow 835 server_id.is_https() ? kServerSecureInitialCongestionWindow
836 : kServerInecureInitialCongestionWindow); 836 : kServerInecureInitialCongestionWindow);
837 config.SetInitialFlowControlWindowToSend(kInitialReceiveWindowSize); 837 config.SetInitialFlowControlWindowToSend(kInitialReceiveWindowSize);
838 config.SetInitialStreamFlowControlWindowToSend(kInitialReceiveWindowSize);
839 config.SetInitialSessionFlowControlWindowToSend(kInitialReceiveWindowSize);
838 if (http_server_properties_) { 840 if (http_server_properties_) {
839 const HttpServerProperties::NetworkStats* stats = 841 const HttpServerProperties::NetworkStats* stats =
840 http_server_properties_->GetServerNetworkStats( 842 http_server_properties_->GetServerNetworkStats(
841 server_id.host_port_pair()); 843 server_id.host_port_pair());
842 if (stats != NULL) { 844 if (stats != NULL) {
843 config.SetInitialRoundTripTimeUsToSend(stats->srtt.InMicroseconds()); 845 config.SetInitialRoundTripTimeUsToSend(stats->srtt.InMicroseconds());
844 } 846 }
845 } 847 }
846 848
847 *session = new QuicClientSession( 849 *session = new QuicClientSession(
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 http_server_properties_->ClearAlternateProtocol(server); 946 http_server_properties_->ClearAlternateProtocol(server);
945 http_server_properties_->SetAlternateProtocol( 947 http_server_properties_->SetAlternateProtocol(
946 server, alternate.port, alternate.protocol); 948 server, alternate.port, alternate.protocol);
947 DCHECK_EQ(QUIC, 949 DCHECK_EQ(QUIC,
948 http_server_properties_->GetAlternateProtocol(server).protocol); 950 http_server_properties_->GetAlternateProtocol(server).protocol);
949 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( 951 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken(
950 server)); 952 server));
951 } 953 }
952 954
953 } // namespace net 955 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698