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

Side by Side Diff: net/http/http_proxy_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
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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ClientSocketHandle* handle) override; 169 ClientSocketHandle* handle) override;
170 170
171 void ReleaseSocket(const std::string& group_name, 171 void ReleaseSocket(const std::string& group_name,
172 std::unique_ptr<StreamSocket> socket, 172 std::unique_ptr<StreamSocket> socket,
173 int id) override; 173 int id) override;
174 174
175 void FlushWithError(int error) override; 175 void FlushWithError(int error) override;
176 176
177 void CloseIdleSockets() override; 177 void CloseIdleSockets() override;
178 178
179 void CloseIdleSocketsInGroup(const std::string& group_name) override;
180
179 int IdleSocketCount() const override; 181 int IdleSocketCount() const override;
180 182
181 int IdleSocketCountInGroup(const std::string& group_name) const override; 183 int IdleSocketCountInGroup(const std::string& group_name) const override;
182 184
183 LoadState GetLoadState(const std::string& group_name, 185 LoadState GetLoadState(const std::string& group_name,
184 const ClientSocketHandle* handle) const override; 186 const ClientSocketHandle* handle) const override;
185 187
186 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( 188 std::unique_ptr<base::DictionaryValue> GetInfoAsValue(
187 const std::string& name, 189 const std::string& name,
188 const std::string& type, 190 const std::string& type,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 TransportClientSocketPool* const transport_pool_; 231 TransportClientSocketPool* const transport_pool_;
230 SSLClientSocketPool* const ssl_pool_; 232 SSLClientSocketPool* const ssl_pool_;
231 PoolBase base_; 233 PoolBase base_;
232 234
233 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); 235 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool);
234 }; 236 };
235 237
236 } // namespace net 238 } // namespace net
237 239
238 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 240 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_proxy_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698