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

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

Issue 944883003: QUIC - Cache the connection type and connection description. Make the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments to Patch Set 5 Created 5 years, 10 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_stream_factory.h ('k') | no next file » | 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_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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 server_info->Start(); 1162 server_info->Start();
1163 } 1163 }
1164 1164
1165 // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. 1165 // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed.
1166 tracked_objects::ScopedTracker tracking_profile61( 1166 tracked_objects::ScopedTracker tracking_profile61(
1167 FROM_HERE_WITH_EXPLICIT_FUNCTION( 1167 FROM_HERE_WITH_EXPLICIT_FUNCTION(
1168 "422516 QuicStreamFactory::CreateSession61")); 1168 "422516 QuicStreamFactory::CreateSession61"));
1169 1169
1170 *session = new QuicClientSession( 1170 *session = new QuicClientSession(
1171 connection, socket.Pass(), this, transport_security_state_, 1171 connection, socket.Pass(), this, transport_security_state_,
1172 server_info.Pass(), config, 1172 server_info.Pass(), config, network_connection_.GetDescription(),
1173 base::MessageLoop::current()->message_loop_proxy().get(), 1173 base::MessageLoop::current()->message_loop_proxy().get(),
1174 net_log.net_log()); 1174 net_log.net_log());
1175 1175
1176 // TODO(rtenneti): Remove ScopedTracker below once crbug.com/422516 is fixed. 1176 // TODO(rtenneti): Remove ScopedTracker below once crbug.com/422516 is fixed.
1177 tracked_objects::ScopedTracker tracking_profile62( 1177 tracked_objects::ScopedTracker tracking_profile62(
1178 FROM_HERE_WITH_EXPLICIT_FUNCTION( 1178 FROM_HERE_WITH_EXPLICIT_FUNCTION(
1179 "422516 QuicStreamFactory::CreateSession62")); 1179 "422516 QuicStreamFactory::CreateSession62"));
1180 1180
1181 all_sessions_[*session] = server_id; // owning pointer 1181 all_sessions_[*session] = server_id; // owning pointer
1182 1182
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 http_server_properties_->ClearAlternateProtocol(server); 1345 http_server_properties_->ClearAlternateProtocol(server);
1346 http_server_properties_->SetAlternateProtocol( 1346 http_server_properties_->SetAlternateProtocol(
1347 server, alternate.port, alternate.protocol, 1); 1347 server, alternate.port, alternate.protocol, 1);
1348 DCHECK_EQ(QUIC, 1348 DCHECK_EQ(QUIC,
1349 http_server_properties_->GetAlternateProtocol(server).protocol); 1349 http_server_properties_->GetAlternateProtocol(server).protocol);
1350 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( 1350 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken(
1351 server)); 1351 server));
1352 } 1352 }
1353 1353
1354 } // namespace net 1354 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698