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

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

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ssl_client_socket_pool.h" 5 #include "net/socket/ssl_client_socket_pool.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 return new SSLConnectJob(group_name, request.params(), ConnectionTimeout(), 504 return new SSLConnectJob(group_name, request.params(), ConnectionTimeout(),
505 transport_pool_, socks_pool_, http_proxy_pool_, 505 transport_pool_, socks_pool_, http_proxy_pool_,
506 client_socket_factory_, host_resolver_, 506 client_socket_factory_, host_resolver_,
507 context_, delegate, net_log_); 507 context_, delegate, net_log_);
508 } 508 }
509 509
510 int SSLClientSocketPool::RequestSocket(const std::string& group_name, 510 int SSLClientSocketPool::RequestSocket(const std::string& group_name,
511 const void* socket_params, 511 const void* socket_params,
512 RequestPriority priority, 512 RequestPriority priority,
513 ClientSocketHandle* handle, 513 ClientSocketHandle* handle,
514 OldCompletionCallback* callback, 514 const CompletionCallback& callback,
515 const BoundNetLog& net_log) { 515 const BoundNetLog& net_log) {
516 const scoped_refptr<SSLSocketParams>* casted_socket_params = 516 const scoped_refptr<SSLSocketParams>* casted_socket_params =
517 static_cast<const scoped_refptr<SSLSocketParams>*>(socket_params); 517 static_cast<const scoped_refptr<SSLSocketParams>*>(socket_params);
518 518
519 return base_.RequestSocket(group_name, *casted_socket_params, priority, 519 return base_.RequestSocket(group_name, *casted_socket_params, priority,
520 handle, callback, net_log); 520 handle, callback, net_log);
521 } 521 }
522 522
523 void SSLClientSocketPool::RequestSockets( 523 void SSLClientSocketPool::RequestSockets(
524 const std::string& group_name, 524 const std::string& group_name,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 Flush(); 617 Flush();
618 } 618 }
619 619
620 bool SSLClientSocketPool::CloseOneIdleConnection() { 620 bool SSLClientSocketPool::CloseOneIdleConnection() {
621 if (base_.CloseOneIdleSocket()) 621 if (base_.CloseOneIdleSocket())
622 return true; 622 return true;
623 return base_.CloseOneIdleConnectionInLayeredPool(); 623 return base_.CloseOneIdleConnectionInLayeredPool();
624 } 624 }
625 625
626 } // namespace net 626 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698