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

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

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: Address comments to hook directly to ClientSocketHandle Created 3 years, 9 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
« no previous file with comments | « net/socket/socks_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ClientSocketHandle* handle) override; 223 ClientSocketHandle* handle) override;
224 224
225 void ReleaseSocket(const std::string& group_name, 225 void ReleaseSocket(const std::string& group_name,
226 std::unique_ptr<StreamSocket> socket, 226 std::unique_ptr<StreamSocket> socket,
227 int id) override; 227 int id) override;
228 228
229 void FlushWithError(int error) override; 229 void FlushWithError(int error) override;
230 230
231 void CloseIdleSockets() override; 231 void CloseIdleSockets() override;
232 232
233 void CloseIdleSocketsInGroup(const std::string& group_name) override;
234
233 int IdleSocketCount() const override; 235 int IdleSocketCount() const override;
234 236
235 int IdleSocketCountInGroup(const std::string& group_name) const override; 237 int IdleSocketCountInGroup(const std::string& group_name) const override;
236 238
237 LoadState GetLoadState(const std::string& group_name, 239 LoadState GetLoadState(const std::string& group_name,
238 const ClientSocketHandle* handle) const override; 240 const ClientSocketHandle* handle) const override;
239 241
240 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name 242 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
241 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. 243 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
242 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, 244 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 HttpProxyClientSocketPool* const http_proxy_pool_; 307 HttpProxyClientSocketPool* const http_proxy_pool_;
306 PoolBase base_; 308 PoolBase base_;
307 const scoped_refptr<SSLConfigService> ssl_config_service_; 309 const scoped_refptr<SSLConfigService> ssl_config_service_;
308 310
309 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 311 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
310 }; 312 };
311 313
312 } // namespace net 314 } // namespace net
313 315
314 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 316 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698