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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |