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

Side by Side Diff: net/socket/socks_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/client_socket_pool_base_unittest.cc ('k') | net/socket/socks_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_SOCKS_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ClientSocketHandle* handle) override; 140 ClientSocketHandle* handle) override;
141 141
142 void ReleaseSocket(const std::string& group_name, 142 void ReleaseSocket(const std::string& group_name,
143 std::unique_ptr<StreamSocket> socket, 143 std::unique_ptr<StreamSocket> socket,
144 int id) override; 144 int id) override;
145 145
146 void FlushWithError(int error) override; 146 void FlushWithError(int error) override;
147 147
148 void CloseIdleSockets() override; 148 void CloseIdleSockets() override;
149 149
150 void CloseIdleSocketsInGroup(const std::string& group_name) override;
151
150 int IdleSocketCount() const override; 152 int IdleSocketCount() const override;
151 153
152 int IdleSocketCountInGroup(const std::string& group_name) const override; 154 int IdleSocketCountInGroup(const std::string& group_name) const override;
153 155
154 LoadState GetLoadState(const std::string& group_name, 156 LoadState GetLoadState(const std::string& group_name,
155 const ClientSocketHandle* handle) const override; 157 const ClientSocketHandle* handle) const override;
156 158
157 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( 159 std::unique_ptr<base::DictionaryValue> GetInfoAsValue(
158 const std::string& name, 160 const std::string& name,
159 const std::string& type, 161 const std::string& type,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 205
204 TransportClientSocketPool* const transport_pool_; 206 TransportClientSocketPool* const transport_pool_;
205 PoolBase base_; 207 PoolBase base_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); 209 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool);
208 }; 210 };
209 211
210 } // namespace net 212 } // namespace net
211 213
212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ 214 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/socks_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698