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

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

Issue 2994003: Refactor how ClientSocketPoolBaseHelper avoids re-entrancy. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Merge. Created 10 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
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/tcp_client_socket_pool.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/socket/client_socket_factory.h" 8 #include "net/socket/client_socket_factory.h"
9 #include "net/socket/client_socket_handle.h" 9 #include "net/socket/client_socket_handle.h"
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 CompletionCallback* callback, 387 CompletionCallback* callback,
388 const BoundNetLog& net_log) { 388 const BoundNetLog& net_log) {
389 const scoped_refptr<SSLSocketParams>* casted_socket_params = 389 const scoped_refptr<SSLSocketParams>* casted_socket_params =
390 static_cast<const scoped_refptr<SSLSocketParams>*>(socket_params); 390 static_cast<const scoped_refptr<SSLSocketParams>*>(socket_params);
391 391
392 return base_.RequestSocket(group_name, *casted_socket_params, priority, 392 return base_.RequestSocket(group_name, *casted_socket_params, priority,
393 handle, callback, net_log); 393 handle, callback, net_log);
394 } 394 }
395 395
396 void SSLClientSocketPool::CancelRequest(const std::string& group_name, 396 void SSLClientSocketPool::CancelRequest(const std::string& group_name,
397 const ClientSocketHandle* handle) { 397 ClientSocketHandle* handle) {
398 base_.CancelRequest(group_name, handle); 398 base_.CancelRequest(group_name, handle);
399 } 399 }
400 400
401 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, 401 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name,
402 ClientSocket* socket, int id) { 402 ClientSocket* socket, int id) {
403 base_.ReleaseSocket(group_name, socket, id); 403 base_.ReleaseSocket(group_name, socket, id);
404 } 404 }
405 405
406 void SSLClientSocketPool::Flush() { 406 void SSLClientSocketPool::Flush() {
407 base_.Flush(); 407 base_.Flush();
408 } 408 }
409 409
410 void SSLClientSocketPool::CloseIdleSockets() { 410 void SSLClientSocketPool::CloseIdleSockets() {
411 base_.CloseIdleSockets(); 411 base_.CloseIdleSockets();
412 } 412 }
413 413
414 int SSLClientSocketPool::IdleSocketCountInGroup( 414 int SSLClientSocketPool::IdleSocketCountInGroup(
415 const std::string& group_name) const { 415 const std::string& group_name) const {
416 return base_.IdleSocketCountInGroup(group_name); 416 return base_.IdleSocketCountInGroup(group_name);
417 } 417 }
418 418
419 LoadState SSLClientSocketPool::GetLoadState( 419 LoadState SSLClientSocketPool::GetLoadState(
420 const std::string& group_name, const ClientSocketHandle* handle) const { 420 const std::string& group_name, const ClientSocketHandle* handle) const {
421 return base_.GetLoadState(group_name, handle); 421 return base_.GetLoadState(group_name, handle);
422 } 422 }
423 423
424 } // namespace net 424 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/tcp_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698