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

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

Issue 2647003: Do not attempt to reuse active sockets after a socket pool flush (usually a network change). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address eroman comments. Created 10 years, 6 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_unittest.cc ('k') | net/socket/tcp_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TCP_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const void* resolve_info, 127 const void* resolve_info,
128 RequestPriority priority, 128 RequestPriority priority,
129 ClientSocketHandle* handle, 129 ClientSocketHandle* handle,
130 CompletionCallback* callback, 130 CompletionCallback* callback,
131 const BoundNetLog& net_log); 131 const BoundNetLog& net_log);
132 132
133 virtual void CancelRequest(const std::string& group_name, 133 virtual void CancelRequest(const std::string& group_name,
134 const ClientSocketHandle* handle); 134 const ClientSocketHandle* handle);
135 135
136 virtual void ReleaseSocket(const std::string& group_name, 136 virtual void ReleaseSocket(const std::string& group_name,
137 ClientSocket* socket); 137 ClientSocket* socket,
138 int id);
139
140 virtual void Flush();
138 141
139 virtual void CloseIdleSockets(); 142 virtual void CloseIdleSockets();
140 143
141 virtual int IdleSocketCount() const { 144 virtual int IdleSocketCount() const {
142 return base_.idle_socket_count(); 145 return base_.idle_socket_count();
143 } 146 }
144 147
145 virtual int IdleSocketCountInGroup(const std::string& group_name) const; 148 virtual int IdleSocketCountInGroup(const std::string& group_name) const;
146 149
147 virtual LoadState GetLoadState(const std::string& group_name, 150 virtual LoadState GetLoadState(const std::string& group_name,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 PoolBase base_; 196 PoolBase base_;
194 197
195 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); 198 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool);
196 }; 199 };
197 200
198 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams) 201 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams)
199 202
200 } // namespace net 203 } // namespace net
201 204
202 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 205 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool_unittest.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698