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

Side by Side Diff: net/socket/websocket_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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void SetPriority(const std::string& group_name, 166 void SetPriority(const std::string& group_name,
167 ClientSocketHandle* handle, 167 ClientSocketHandle* handle,
168 RequestPriority priority) override; 168 RequestPriority priority) override;
169 void CancelRequest(const std::string& group_name, 169 void CancelRequest(const std::string& group_name,
170 ClientSocketHandle* handle) override; 170 ClientSocketHandle* handle) override;
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 void FlushWithError(int error) override; 174 void FlushWithError(int error) override;
175 void CloseIdleSockets() override; 175 void CloseIdleSockets() override;
176 void CloseIdleSocketsInGroup(const std::string& group_name) override;
176 int IdleSocketCount() const override; 177 int IdleSocketCount() const override;
177 int IdleSocketCountInGroup(const std::string& group_name) const override; 178 int IdleSocketCountInGroup(const std::string& group_name) const override;
178 LoadState GetLoadState(const std::string& group_name, 179 LoadState GetLoadState(const std::string& group_name,
179 const ClientSocketHandle* handle) const override; 180 const ClientSocketHandle* handle) const override;
180 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( 181 std::unique_ptr<base::DictionaryValue> GetInfoAsValue(
181 const std::string& name, 182 const std::string& name,
182 const std::string& type, 183 const std::string& type,
183 bool include_nested_pools) const override; 184 bool include_nested_pools) const override;
184 base::TimeDelta ConnectionTimeout() const override; 185 base::TimeDelta ConnectionTimeout() const override;
185 186
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 bool flushing_; 266 bool flushing_;
266 267
267 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; 268 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); 270 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool);
270 }; 271 };
271 272
272 } // namespace net 273 } // namespace net
273 274
274 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 275 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/socket/websocket_transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698