| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 DISALLOW_COPY_AND_ASSIGN(TCPConnectJob); | 109 DISALLOW_COPY_AND_ASSIGN(TCPConnectJob); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 class TCPClientSocketPool : public ClientSocketPool { | 112 class TCPClientSocketPool : public ClientSocketPool { |
| 113 public: | 113 public: |
| 114 TCPClientSocketPool( | 114 TCPClientSocketPool( |
| 115 int max_sockets, | 115 int max_sockets, |
| 116 int max_sockets_per_group, | 116 int max_sockets_per_group, |
| 117 const std::string& name, | 117 const std::string& name, |
| 118 HostResolver* host_resolver, | 118 HostResolver* host_resolver, |
| 119 ClientSocketFactory* client_socket_factory); | 119 ClientSocketFactory* client_socket_factory, |
| 120 NetworkChangeNotifier* network_change_notifier); |
| 120 | 121 |
| 121 // ClientSocketPool methods: | 122 // ClientSocketPool methods: |
| 122 | 123 |
| 123 virtual int RequestSocket(const std::string& group_name, | 124 virtual int RequestSocket(const std::string& group_name, |
| 124 const void* resolve_info, | 125 const void* resolve_info, |
| 125 RequestPriority priority, | 126 RequestPriority priority, |
| 126 ClientSocketHandle* handle, | 127 ClientSocketHandle* handle, |
| 127 CompletionCallback* callback, | 128 CompletionCallback* callback, |
| 128 const BoundNetLog& net_log); | 129 const BoundNetLog& net_log); |
| 129 | 130 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 PoolBase base_; | 187 PoolBase base_; |
| 187 | 188 |
| 188 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 189 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams) | 192 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams) |
| 192 | 193 |
| 193 } // namespace net | 194 } // namespace net |
| 194 | 195 |
| 195 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 196 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |