| OLD | NEW |
| 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/transport_client_socket_pool.h" | 5 #include "net/socket/transport_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 base_.EnableConnectBackupJobs(); | 385 base_.EnableConnectBackupJobs(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 TransportClientSocketPool::~TransportClientSocketPool() {} | 388 TransportClientSocketPool::~TransportClientSocketPool() {} |
| 389 | 389 |
| 390 int TransportClientSocketPool::RequestSocket( | 390 int TransportClientSocketPool::RequestSocket( |
| 391 const std::string& group_name, | 391 const std::string& group_name, |
| 392 const void* params, | 392 const void* params, |
| 393 RequestPriority priority, | 393 RequestPriority priority, |
| 394 ClientSocketHandle* handle, | 394 ClientSocketHandle* handle, |
| 395 OldCompletionCallback* callback, | 395 const CompletionCallback& callback, |
| 396 const BoundNetLog& net_log) { | 396 const BoundNetLog& net_log) { |
| 397 const scoped_refptr<TransportSocketParams>* casted_params = | 397 const scoped_refptr<TransportSocketParams>* casted_params = |
| 398 static_cast<const scoped_refptr<TransportSocketParams>*>(params); | 398 static_cast<const scoped_refptr<TransportSocketParams>*>(params); |
| 399 | 399 |
| 400 if (net_log.IsLoggingAllEvents()) { | 400 if (net_log.IsLoggingAllEvents()) { |
| 401 // TODO(eroman): Split out the host and port parameters. | 401 // TODO(eroman): Split out the host and port parameters. |
| 402 net_log.AddEvent( | 402 net_log.AddEvent( |
| 403 NetLog::TYPE_TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKET, | 403 NetLog::TYPE_TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKET, |
| 404 make_scoped_refptr(new NetLogStringParameter( | 404 make_scoped_refptr(new NetLogStringParameter( |
| 405 "host_and_port", | 405 "host_and_port", |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { | 487 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { |
| 488 return base_.ConnectionTimeout(); | 488 return base_.ConnectionTimeout(); |
| 489 } | 489 } |
| 490 | 490 |
| 491 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { | 491 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { |
| 492 return base_.histograms(); | 492 return base_.histograms(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace net | 495 } // namespace net |
| OLD | NEW |