Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: net/socket/ssl_client_socket_pool.h

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ClientSocketHandle* handle) override; 219 ClientSocketHandle* handle) override;
220 220
221 void ReleaseSocket(const std::string& group_name, 221 void ReleaseSocket(const std::string& group_name,
222 std::unique_ptr<StreamSocket> socket, 222 std::unique_ptr<StreamSocket> socket,
223 int id) override; 223 int id) override;
224 224
225 void FlushWithError(int error) override; 225 void FlushWithError(int error) override;
226 226
227 void CloseIdleSockets() override; 227 void CloseIdleSockets() override;
228 228
229 void CloseIdleSocketsInGroup(const std::string& group_name) override;
230
229 int IdleSocketCount() const override; 231 int IdleSocketCount() const override;
230 232
231 int IdleSocketCountInGroup(const std::string& group_name) const override; 233 int IdleSocketCountInGroup(const std::string& group_name) const override;
232 234
233 LoadState GetLoadState(const std::string& group_name, 235 LoadState GetLoadState(const std::string& group_name,
234 const ClientSocketHandle* handle) const override; 236 const ClientSocketHandle* handle) const override;
235 237
236 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name 238 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
237 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. 239 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
238 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, 240 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 HttpProxyClientSocketPool* const http_proxy_pool_; 303 HttpProxyClientSocketPool* const http_proxy_pool_;
302 PoolBase base_; 304 PoolBase base_;
303 const scoped_refptr<SSLConfigService> ssl_config_service_; 305 const scoped_refptr<SSLConfigService> ssl_config_service_;
304 306
305 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 307 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
306 }; 308 };
307 309
308 } // namespace net 310 } // namespace net
309 311
310 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 312 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698