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

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

Issue 961173003: QuicConnection no longer owns the debug visitor. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Cleanup_QUIC_TransmissionInfo_86734009
Patch Set: Fixed leaky ptr Created 5 years, 9 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
« no previous file with comments | « net/quic/quic_client_session.h ('k') | net/quic/quic_connection.h » ('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_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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.h ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698