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

Side by Side Diff: net/socket/transport_client_socket_pool.cc

Issue 384873002: This CL changes the lifespan of SSLConnectJobMessengers so that they are created only when needed, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@useloop
Patch Set: Removed FormatSessionCacheKey function. Created 6 years, 5 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
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/socket/transport_client_socket_pool.h" 5 #include "net/socket/transport_client_socket_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 384 }
385 NotifyDelegateOfCompletion(result); // Deletes |this| 385 NotifyDelegateOfCompletion(result); // Deletes |this|
386 } 386 }
387 387
388 int TransportConnectJob::ConnectInternal() { 388 int TransportConnectJob::ConnectInternal() {
389 next_state_ = STATE_RESOLVE_HOST; 389 next_state_ = STATE_RESOLVE_HOST;
390 return DoLoop(OK); 390 return DoLoop(OK);
391 } 391 }
392 392
393 scoped_ptr<ConnectJob> 393 scoped_ptr<ConnectJob>
394 TransportClientSocketPool::TransportConnectJobFactory::NewConnectJob( 394 TransportClientSocketPool::TransportConnectJobFactory::NewConnectJob(
395 const std::string& group_name, 395 const std::string& group_name,
396 const PoolBase::Request& request, 396 const PoolBase::Request& request,
397 ConnectJob::Delegate* delegate) const { 397 ConnectJob::Delegate* delegate) {
398 return scoped_ptr<ConnectJob>( 398 return scoped_ptr<ConnectJob>(
399 new TransportConnectJob(group_name, 399 new TransportConnectJob(group_name,
400 request.priority(), 400 request.priority(),
401 request.params(), 401 request.params(),
402 ConnectionTimeout(), 402 ConnectionTimeout(),
403 client_socket_factory_, 403 client_socket_factory_,
404 host_resolver_, 404 host_resolver_,
405 delegate, 405 delegate,
406 net_log_)); 406 net_log_));
407 } 407 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 HigherLayeredPool* higher_pool) { 528 HigherLayeredPool* higher_pool) {
529 base_.AddHigherLayeredPool(higher_pool); 529 base_.AddHigherLayeredPool(higher_pool);
530 } 530 }
531 531
532 void TransportClientSocketPool::RemoveHigherLayeredPool( 532 void TransportClientSocketPool::RemoveHigherLayeredPool(
533 HigherLayeredPool* higher_pool) { 533 HigherLayeredPool* higher_pool) {
534 base_.RemoveHigherLayeredPool(higher_pool); 534 base_.RemoveHigherLayeredPool(higher_pool);
535 } 535 }
536 536
537 } // namespace net 537 } // namespace net
OLDNEW
« net/socket/ssl_client_socket_pool.h ('K') | « net/socket/transport_client_socket_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698