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_client_session.h" | 5 #include "net/quic/quic_client_session.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)), | 175 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)), |
176 logger_(new QuicConnectionLogger(this, connection_description, net_log_)), | 176 logger_(new QuicConnectionLogger(this, connection_description, net_log_)), |
177 num_packets_read_(0), | 177 num_packets_read_(0), |
178 going_away_(false), | 178 going_away_(false), |
179 weak_factory_(this) { | 179 weak_factory_(this) { |
180 // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. | 180 // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. |
181 tracked_objects::ScopedTracker tracking_profile1( | 181 tracked_objects::ScopedTracker tracking_profile1( |
182 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 182 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
183 "422516 QuicClientSession::QuicClientSession1")); | 183 "422516 QuicClientSession::QuicClientSession1")); |
184 | 184 |
185 connection->set_debug_visitor(logger_); | 185 connection->set_debug_visitor(logger_.get()); |
186 IPEndPoint address; | 186 IPEndPoint address; |
187 // TODO(rtenneti): Remove ScopedTracker below once crbug.com/422516 is fixed. | 187 // TODO(rtenneti): Remove ScopedTracker below once crbug.com/422516 is fixed. |
188 tracked_objects::ScopedTracker tracking_profile2( | 188 tracked_objects::ScopedTracker tracking_profile2( |
189 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 189 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
190 "422516 QuicClientSession::QuicClientSession2")); | 190 "422516 QuicClientSession::QuicClientSession2")); |
191 if (socket && socket->GetLocalAddress(&address) == OK && | 191 if (socket && socket->GetLocalAddress(&address) == OK && |
192 address.GetFamily() == ADDRESS_FAMILY_IPV6) { | 192 address.GetFamily() == ADDRESS_FAMILY_IPV6) { |
193 connection->set_max_packet_length( | 193 connection->set_max_packet_length( |
194 connection->max_packet_length() - kAdditionalOverheadForIPv6); | 194 connection->max_packet_length() - kAdditionalOverheadForIPv6); |
195 } | 195 } |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 return; | 947 return; |
948 | 948 |
949 // TODO(rch): re-enable this code once beta is cut. | 949 // TODO(rch): re-enable this code once beta is cut. |
950 // if (stream_factory_) | 950 // if (stream_factory_) |
951 // stream_factory_->OnSessionConnectTimeout(this); | 951 // stream_factory_->OnSessionConnectTimeout(this); |
952 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 952 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
953 // DCHECK_EQ(0u, GetNumOpenStreams()); | 953 // DCHECK_EQ(0u, GetNumOpenStreams()); |
954 } | 954 } |
955 | 955 |
956 } // namespace net | 956 } // namespace net |
OLD | NEW |