OLD | NEW |
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 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 DISALLOW_COPY_AND_ASSIGN(TCPConnectJob); | 96 DISALLOW_COPY_AND_ASSIGN(TCPConnectJob); |
97 }; | 97 }; |
98 | 98 |
99 class TCPClientSocketPool : public ClientSocketPool { | 99 class TCPClientSocketPool : public ClientSocketPool { |
100 public: | 100 public: |
101 TCPClientSocketPool( | 101 TCPClientSocketPool( |
102 int max_sockets, | 102 int max_sockets, |
103 int max_sockets_per_group, | 103 int max_sockets_per_group, |
104 const std::string& name, | 104 const std::string& name, |
105 HostResolver* host_resolver, | 105 HostResolver* host_resolver, |
106 ClientSocketFactory* client_socket_factory); | 106 ClientSocketFactory* client_socket_factory, |
| 107 NetworkChangeNotifier* network_change_notifier); |
107 | 108 |
108 // ClientSocketPool methods: | 109 // ClientSocketPool methods: |
109 | 110 |
110 virtual int RequestSocket(const std::string& group_name, | 111 virtual int RequestSocket(const std::string& group_name, |
111 const void* resolve_info, | 112 const void* resolve_info, |
112 RequestPriority priority, | 113 RequestPriority priority, |
113 ClientSocketHandle* handle, | 114 ClientSocketHandle* handle, |
114 CompletionCallback* callback, | 115 CompletionCallback* callback, |
115 const BoundNetLog& net_log); | 116 const BoundNetLog& net_log); |
116 | 117 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 PoolBase base_; | 174 PoolBase base_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 176 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
176 }; | 177 }; |
177 | 178 |
178 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams) | 179 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams) |
179 | 180 |
180 } // namespace net | 181 } // namespace net |
181 | 182 |
182 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 183 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |