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

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

Issue 2994003: Refactor how ClientSocketPoolBaseHelper avoids re-entrancy. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Merge. Created 10 years, 5 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.cc ('k') | net/socket/ssl_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_SSL_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // ClientSocketPool methods: 165 // ClientSocketPool methods:
166 virtual int RequestSocket(const std::string& group_name, 166 virtual int RequestSocket(const std::string& group_name,
167 const void* connect_params, 167 const void* connect_params,
168 RequestPriority priority, 168 RequestPriority priority,
169 ClientSocketHandle* handle, 169 ClientSocketHandle* handle,
170 CompletionCallback* callback, 170 CompletionCallback* callback,
171 const BoundNetLog& net_log); 171 const BoundNetLog& net_log);
172 172
173 virtual void CancelRequest(const std::string& group_name, 173 virtual void CancelRequest(const std::string& group_name,
174 const ClientSocketHandle* handle); 174 ClientSocketHandle* handle);
175 175
176 virtual void ReleaseSocket(const std::string& group_name, 176 virtual void ReleaseSocket(const std::string& group_name,
177 ClientSocket* socket, 177 ClientSocket* socket,
178 int id); 178 int id);
179 179
180 virtual void Flush(); 180 virtual void Flush();
181 181
182 virtual void CloseIdleSockets(); 182 virtual void CloseIdleSockets();
183 183
184 virtual int IdleSocketCount() const { 184 virtual int IdleSocketCount() const {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 PoolBase base_; 239 PoolBase base_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 241 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
242 }; 242 };
243 243
244 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); 244 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams);
245 245
246 } // namespace net 246 } // namespace net
247 247
248 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 248 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698