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 |
168 virtual void CloseIdleSockets() OVERRIDE; | 170 virtual void CloseIdleSockets() OVERRIDE; |
169 | 171 |
170 virtual int IdleSocketCount() const OVERRIDE; | 172 virtual int IdleSocketCount() const OVERRIDE; |
171 | 173 |
172 virtual int IdleSocketCountInGroup( | 174 virtual int IdleSocketCountInGroup( |
173 const std::string& group_name) const OVERRIDE; | 175 const std::string& group_name) const OVERRIDE; |
174 | 176 |
175 virtual LoadState GetLoadState( | 177 virtual LoadState GetLoadState( |
176 const std::string& group_name, | 178 const std::string& group_name, |
177 const ClientSocketHandle* handle) const OVERRIDE; | 179 const ClientSocketHandle* handle) const OVERRIDE; |
178 | 180 |
| 181 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE; |
| 182 |
| 183 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE; |
| 184 |
179 virtual base::DictionaryValue* GetInfoAsValue( | 185 virtual base::DictionaryValue* GetInfoAsValue( |
180 const std::string& name, | 186 const std::string& name, |
181 const std::string& type, | 187 const std::string& type, |
182 bool include_nested_pools) const OVERRIDE; | 188 bool include_nested_pools) const OVERRIDE; |
183 | 189 |
184 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; | 190 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
185 | 191 |
186 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; | 192 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; |
187 | 193 |
188 private: | 194 private: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 227 |
222 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 228 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
223 }; | 229 }; |
224 | 230 |
225 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 231 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
226 TransportSocketParams); | 232 TransportSocketParams); |
227 | 233 |
228 } // namespace net | 234 } // namespace net |
229 | 235 |
230 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 236 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |