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

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

Issue 870053002: Further instrumentations of QuicStreamFactory::CreateSession to find janks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | net/quic/quic_stream_factory.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_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"
11 #include "base/profiler/scoped_tracker.h"
11 #include "base/stl_util.h" 12 #include "base/stl_util.h"
12 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
15 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
16 #include "net/base/network_activity_monitor.h" 17 #include "net/base/network_activity_monitor.h"
17 #include "net/http/transport_security_state.h" 18 #include "net/http/transport_security_state.h"
18 #include "net/quic/crypto/proof_verifier_chromium.h" 19 #include "net/quic/crypto/proof_verifier_chromium.h"
19 #include "net/quic/crypto/quic_server_info.h" 20 #include "net/quic/crypto/quic_server_info.h"
20 #include "net/quic/quic_connection_helper.h" 21 #include "net/quic/quic_connection_helper.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 transport_security_state_(transport_security_state), 169 transport_security_state_(transport_security_state),
169 server_info_(server_info.Pass()), 170 server_info_(server_info.Pass()),
170 read_pending_(false), 171 read_pending_(false),
171 num_total_streams_(0), 172 num_total_streams_(0),
172 task_runner_(task_runner), 173 task_runner_(task_runner),
173 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)), 174 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)),
174 logger_(new QuicConnectionLogger(this, net_log_)), 175 logger_(new QuicConnectionLogger(this, net_log_)),
175 num_packets_read_(0), 176 num_packets_read_(0),
176 going_away_(false), 177 going_away_(false),
177 weak_factory_(this) { 178 weak_factory_(this) {
179 // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed.
180 tracked_objects::ScopedTracker tracking_profile(
181 FROM_HERE_WITH_EXPLICIT_FUNCTION(
182 "422516 QuicClientSession::QuicClientSession"));
183
178 connection->set_debug_visitor(logger_); 184 connection->set_debug_visitor(logger_);
179 IPEndPoint address; 185 IPEndPoint address;
180 if (socket && socket->GetLocalAddress(&address) == OK && 186 if (socket && socket->GetLocalAddress(&address) == OK &&
181 address.GetFamily() == ADDRESS_FAMILY_IPV6) { 187 address.GetFamily() == ADDRESS_FAMILY_IPV6) {
182 connection->set_max_packet_length( 188 connection->set_max_packet_length(
183 connection->max_packet_length() - kAdditionalOverheadForIPv6); 189 connection->max_packet_length() - kAdditionalOverheadForIPv6);
184 } 190 }
185 } 191 }
186 192
187 void QuicClientSession::InitializeSession( 193 void QuicClientSession::InitializeSession(
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 return; 942 return;
937 943
938 // TODO(rch): re-enable this code once beta is cut. 944 // TODO(rch): re-enable this code once beta is cut.
939 // if (stream_factory_) 945 // if (stream_factory_)
940 // stream_factory_->OnSessionConnectTimeout(this); 946 // stream_factory_->OnSessionConnectTimeout(this);
941 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); 947 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED);
942 // DCHECK_EQ(0u, GetNumOpenStreams()); 948 // DCHECK_EQ(0u, GetNumOpenStreams());
943 } 949 }
944 950
945 } // namespace net 951 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698