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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }; | 111 }; |
112 | 112 |
113 class TCPClientSocketPool : public ClientSocketPool { | 113 class TCPClientSocketPool : public ClientSocketPool { |
114 public: | 114 public: |
115 TCPClientSocketPool( | 115 TCPClientSocketPool( |
116 int max_sockets, | 116 int max_sockets, |
117 int max_sockets_per_group, | 117 int max_sockets_per_group, |
118 const scoped_refptr<ClientSocketPoolHistograms>& histograms, | 118 const scoped_refptr<ClientSocketPoolHistograms>& histograms, |
119 HostResolver* host_resolver, | 119 HostResolver* host_resolver, |
120 ClientSocketFactory* client_socket_factory, | 120 ClientSocketFactory* client_socket_factory, |
121 NetworkChangeNotifier* network_change_notifier, | |
122 NetLog* net_log); | 121 NetLog* net_log); |
123 | 122 |
124 // ClientSocketPool methods: | 123 // ClientSocketPool methods: |
125 | 124 |
126 virtual int RequestSocket(const std::string& group_name, | 125 virtual int RequestSocket(const std::string& group_name, |
127 const void* resolve_info, | 126 const void* resolve_info, |
128 RequestPriority priority, | 127 RequestPriority priority, |
129 ClientSocketHandle* handle, | 128 ClientSocketHandle* handle, |
130 CompletionCallback* callback, | 129 CompletionCallback* callback, |
131 const BoundNetLog& net_log); | 130 const BoundNetLog& net_log); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 PoolBase base_; | 195 PoolBase base_; |
197 | 196 |
198 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 197 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
199 }; | 198 }; |
200 | 199 |
201 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); | 200 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); |
202 | 201 |
203 } // namespace net | 202 } // namespace net |
204 | 203 |
205 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 204 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |