OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 virtual void CancelRequest(const std::string& group_name, | 159 virtual void CancelRequest(const std::string& group_name, |
160 ClientSocketHandle* handle) OVERRIDE; | 160 ClientSocketHandle* handle) OVERRIDE; |
161 | 161 |
162 virtual void ReleaseSocket(const std::string& group_name, | 162 virtual void ReleaseSocket(const std::string& group_name, |
163 StreamSocket* socket, | 163 StreamSocket* socket, |
164 int id) OVERRIDE; | 164 int id) OVERRIDE; |
165 | 165 |
166 virtual void Flush() OVERRIDE; | 166 virtual void Flush() OVERRIDE; |
167 | 167 |
168 virtual bool IsStalled() const OVERRIDE; | |
169 | |
170 virtual void CloseIdleSockets() OVERRIDE; | 168 virtual void CloseIdleSockets() OVERRIDE; |
171 | 169 |
172 virtual int IdleSocketCount() const OVERRIDE; | 170 virtual int IdleSocketCount() const OVERRIDE; |
173 | 171 |
174 virtual int IdleSocketCountInGroup( | 172 virtual int IdleSocketCountInGroup( |
175 const std::string& group_name) const OVERRIDE; | 173 const std::string& group_name) const OVERRIDE; |
176 | 174 |
177 virtual LoadState GetLoadState( | 175 virtual LoadState GetLoadState( |
178 const std::string& group_name, | 176 const std::string& group_name, |
179 const ClientSocketHandle* handle) const OVERRIDE; | 177 const ClientSocketHandle* handle) const OVERRIDE; |
180 | 178 |
181 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE; | |
182 | |
183 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE; | |
184 | |
185 virtual base::DictionaryValue* GetInfoAsValue( | 179 virtual base::DictionaryValue* GetInfoAsValue( |
186 const std::string& name, | 180 const std::string& name, |
187 const std::string& type, | 181 const std::string& type, |
188 bool include_nested_pools) const OVERRIDE; | 182 bool include_nested_pools) const OVERRIDE; |
189 | 183 |
190 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; | 184 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
191 | 185 |
192 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; | 186 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; |
193 | 187 |
194 private: | 188 private: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 221 |
228 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 222 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
229 }; | 223 }; |
230 | 224 |
231 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 225 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
232 TransportSocketParams); | 226 TransportSocketParams); |
233 | 227 |
234 } // namespace net | 228 } // namespace net |
235 | 229 |
236 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 230 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |