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

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

Issue 357573004: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase with TOT 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_test.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool enable_time_based_loss_detection, 88 bool enable_time_based_loss_detection,
89 QuicTagVector connection_options) { 89 QuicTagVector connection_options) {
90 QuicConfig config; 90 QuicConfig config;
91 config.SetDefaults(); 91 config.SetDefaults();
92 config.EnablePacing(enable_pacing); 92 config.EnablePacing(enable_pacing);
93 if (enable_time_based_loss_detection) 93 if (enable_time_based_loss_detection)
94 config.SetLossDetectionToSend(kTIME); 94 config.SetLossDetectionToSend(kTIME);
95 config.set_idle_connection_state_lifetime( 95 config.set_idle_connection_state_lifetime(
96 QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds), 96 QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds),
97 QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds)); 97 QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds));
98 config.SetCongestionOptionsToSend(connection_options); 98 config.SetConnectionOptionsToSend(connection_options);
99 return config; 99 return config;
100 } 100 }
101 101
102 } // namespace 102 } // namespace
103 103
104 QuicStreamFactory::IpAliasKey::IpAliasKey() {} 104 QuicStreamFactory::IpAliasKey::IpAliasKey() {}
105 105
106 QuicStreamFactory::IpAliasKey::IpAliasKey(IPEndPoint ip_endpoint, 106 QuicStreamFactory::IpAliasKey::IpAliasKey(IPEndPoint ip_endpoint,
107 bool is_https) 107 bool is_https)
108 : ip_endpoint(ip_endpoint), 108 : ip_endpoint(ip_endpoint),
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 http_server_properties_->ClearAlternateProtocol(server); 950 http_server_properties_->ClearAlternateProtocol(server);
951 http_server_properties_->SetAlternateProtocol( 951 http_server_properties_->SetAlternateProtocol(
952 server, alternate.port, alternate.protocol); 952 server, alternate.port, alternate.protocol);
953 DCHECK_EQ(QUIC, 953 DCHECK_EQ(QUIC,
954 http_server_properties_->GetAlternateProtocol(server).protocol); 954 http_server_properties_->GetAlternateProtocol(server).protocol);
955 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( 955 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken(
956 server)); 956 server));
957 } 957 }
958 958
959 } // namespace net 959 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698