| 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_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 class TCPClientSocketPool : public ClientSocketPool { | 74 class TCPClientSocketPool : public ClientSocketPool { |
| 75 public: | 75 public: |
| 76 TCPClientSocketPool(int max_sockets, | 76 TCPClientSocketPool(int max_sockets, |
| 77 int max_sockets_per_group, | 77 int max_sockets_per_group, |
| 78 HostResolver* host_resolver, | 78 HostResolver* host_resolver, |
| 79 ClientSocketFactory* client_socket_factory); | 79 ClientSocketFactory* client_socket_factory); |
| 80 | 80 |
| 81 // ClientSocketPool methods: | 81 // ClientSocketPool methods: |
| 82 | 82 |
| 83 virtual int RequestSocket(const std::string& group_name, | 83 virtual int RequestSocket(LoadLog* load_log, |
| 84 const std::string& group_name, |
| 84 const HostResolver::RequestInfo& resolve_info, | 85 const HostResolver::RequestInfo& resolve_info, |
| 85 int priority, | 86 int priority, |
| 86 ClientSocketHandle* handle, | 87 ClientSocketHandle* handle, |
| 87 CompletionCallback* callback); | 88 CompletionCallback* callback); |
| 88 | 89 |
| 89 virtual void CancelRequest(const std::string& group_name, | 90 virtual void CancelRequest(const std::string& group_name, |
| 90 const ClientSocketHandle* handle); | 91 const ClientSocketHandle* handle); |
| 91 | 92 |
| 92 virtual void ReleaseSocket(const std::string& group_name, | 93 virtual void ReleaseSocket(const std::string& group_name, |
| 93 ClientSocket* socket); | 94 ClientSocket* socket); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // the posting of the task and the execution, then we'll hit the DCHECK that | 137 // the posting of the task and the execution, then we'll hit the DCHECK that |
| 137 // |ClientSocketPoolBase::group_map_| is empty. | 138 // |ClientSocketPoolBase::group_map_| is empty. |
| 138 scoped_refptr<ClientSocketPoolBase> base_; | 139 scoped_refptr<ClientSocketPoolBase> base_; |
| 139 | 140 |
| 140 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 141 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 } // namespace net | 144 } // namespace net |
| 144 | 145 |
| 145 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 146 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |