| 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 if (!helper_.get()) { | 742 if (!helper_.get()) { |
| 743 helper_.reset(new QuicConnectionHelper( | 743 helper_.reset(new QuicConnectionHelper( |
| 744 base::MessageLoop::current()->message_loop_proxy().get(), | 744 base::MessageLoop::current()->message_loop_proxy().get(), |
| 745 clock_.get(), random_generator_)); | 745 clock_.get(), random_generator_)); |
| 746 } | 746 } |
| 747 | 747 |
| 748 QuicConnection* connection = | 748 QuicConnection* connection = |
| 749 new QuicConnection(connection_id, addr, helper_.get(), writer.get(), | 749 new QuicConnection(connection_id, addr, helper_.get(), writer.get(), |
| 750 false, supported_versions_); | 750 false, supported_versions_); |
| 751 writer->SetConnection(connection); | 751 writer->SetConnection(connection); |
| 752 connection->options()->max_packet_length = max_packet_length_; | 752 connection->set_max_packet_length(max_packet_length_); |
| 753 | 753 |
| 754 InitializeCachedStateInCryptoConfig(server_id, server_info); | 754 InitializeCachedStateInCryptoConfig(server_id, server_info); |
| 755 | 755 |
| 756 QuicConfig config = config_; | 756 QuicConfig config = config_; |
| 757 config_.SetInitialCongestionWindowToSend( | 757 config_.SetInitialCongestionWindowToSend( |
| 758 server_id.is_https() ? kServerSecureInitialCongestionWindow | 758 server_id.is_https() ? kServerSecureInitialCongestionWindow |
| 759 : kServerInecureInitialCongestionWindow); | 759 : kServerInecureInitialCongestionWindow); |
| 760 if (http_server_properties_) { | 760 if (http_server_properties_) { |
| 761 const HttpServerProperties::NetworkStats* stats = | 761 const HttpServerProperties::NetworkStats* stats = |
| 762 http_server_properties_->GetServerNetworkStats( | 762 http_server_properties_->GetServerNetworkStats( |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 http_server_properties_->ClearAlternateProtocol(server); | 858 http_server_properties_->ClearAlternateProtocol(server); |
| 859 http_server_properties_->SetAlternateProtocol( | 859 http_server_properties_->SetAlternateProtocol( |
| 860 server, alternate.port, alternate.protocol); | 860 server, alternate.port, alternate.protocol); |
| 861 DCHECK_EQ(QUIC, | 861 DCHECK_EQ(QUIC, |
| 862 http_server_properties_->GetAlternateProtocol(server).protocol); | 862 http_server_properties_->GetAlternateProtocol(server).protocol); |
| 863 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( | 863 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( |
| 864 server)); | 864 server)); |
| 865 } | 865 } |
| 866 | 866 |
| 867 } // namespace net | 867 } // namespace net |
| OLD | NEW |