| OLD | NEW |
| 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/client_socket_pool.h" | 5 #include "net/socket/client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 base::TimeDelta ClientSocketPool::used_idle_socket_timeout() { | 36 base::TimeDelta ClientSocketPool::used_idle_socket_timeout() { |
| 37 return base::TimeDelta::FromSeconds(g_used_idle_socket_timeout_s); | 37 return base::TimeDelta::FromSeconds(g_used_idle_socket_timeout_s); |
| 38 } | 38 } |
| 39 | 39 |
| 40 // static | 40 // static |
| 41 void ClientSocketPool::set_used_idle_socket_timeout(base::TimeDelta timeout) { | 41 void ClientSocketPool::set_used_idle_socket_timeout(base::TimeDelta timeout) { |
| 42 DCHECK_GT(timeout.InSeconds(), 0); | 42 DCHECK_GT(timeout.InSeconds(), 0); |
| 43 g_used_idle_socket_timeout_s = timeout.InSeconds(); | 43 g_used_idle_socket_timeout_s = timeout.InSeconds(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 ClientSocketPool::ClientSocketPool() {} | 46 ClientSocketPool::ClientSocketPool() { |
| 47 } |
| 47 | 48 |
| 48 ClientSocketPool::~ClientSocketPool() {} | 49 ClientSocketPool::~ClientSocketPool() { |
| 50 } |
| 49 | 51 |
| 50 } // namespace net | 52 } // namespace net |
| OLD | NEW |