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

Side by Side Diff: net/socket/transport_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/ssl_client_socket_pool.cc ('k') | net/socket/transport_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_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 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ClientSocketHandle* handle, 218 ClientSocketHandle* handle,
219 RequestPriority priority) override; 219 RequestPriority priority) override;
220 220
221 void CancelRequest(const std::string& group_name, 221 void CancelRequest(const std::string& group_name,
222 ClientSocketHandle* handle) override; 222 ClientSocketHandle* handle) override;
223 void ReleaseSocket(const std::string& group_name, 223 void ReleaseSocket(const std::string& group_name,
224 std::unique_ptr<StreamSocket> socket, 224 std::unique_ptr<StreamSocket> socket,
225 int id) override; 225 int id) override;
226 void FlushWithError(int error) override; 226 void FlushWithError(int error) override;
227 void CloseIdleSockets() override; 227 void CloseIdleSockets() override;
228 void CloseIdleSocketsInGroup(const std::string& group_name) override;
228 int IdleSocketCount() const override; 229 int IdleSocketCount() const override;
229 int IdleSocketCountInGroup(const std::string& group_name) const override; 230 int IdleSocketCountInGroup(const std::string& group_name) const override;
230 LoadState GetLoadState(const std::string& group_name, 231 LoadState GetLoadState(const std::string& group_name,
231 const ClientSocketHandle* handle) const override; 232 const ClientSocketHandle* handle) const override;
232 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( 233 std::unique_ptr<base::DictionaryValue> GetInfoAsValue(
233 const std::string& name, 234 const std::string& name,
234 const std::string& type, 235 const std::string& type,
235 bool include_nested_pools) const override; 236 bool include_nested_pools) const override;
236 base::TimeDelta ConnectionTimeout() const override; 237 base::TimeDelta ConnectionTimeout() const override;
237 238
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 }; 285 };
285 286
286 PoolBase base_; 287 PoolBase base_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 289 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
289 }; 290 };
290 291
291 } // namespace net 292 } // namespace net
292 293
293 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 294 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698