OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef NET_BASE_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_BASE_CLIENT_SOCKET_POOL_H_ |
6 #define NET_BASE_CLIENT_SOCKET_POOL_H_ | 6 #define NET_BASE_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_ptr.h" |
13 #include "base/timer.h" | 14 #include "base/timer.h" |
14 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 class ClientSocket; | 19 class ClientSocket; |
19 class ClientSocketHandle; | 20 class ClientSocketHandle; |
20 | 21 |
21 // A ClientSocketPool is used to restrict the number of sockets open at a time. | 22 // A ClientSocketPool is used to restrict the number of sockets open at a time. |
22 // It also maintains a list of idle persistent sockets. | 23 // It also maintains a list of idle persistent sockets. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 137 |
137 // The maximum number of sockets kept per group. | 138 // The maximum number of sockets kept per group. |
138 int max_sockets_per_group_; | 139 int max_sockets_per_group_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(ClientSocketPool); | 141 DISALLOW_COPY_AND_ASSIGN(ClientSocketPool); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace net | 144 } // namespace net |
144 | 145 |
145 #endif // NET_BASE_CLIENT_SOCKET_POOL_H_ | 146 #endif // NET_BASE_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |