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

Side by Side Diff: net/socket/tcp_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/ssl_client_socket_pool.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // ClientSocketPool methods: 122 // ClientSocketPool methods:
123 123
124 virtual int RequestSocket(const std::string& group_name, 124 virtual int RequestSocket(const std::string& group_name,
125 const void* resolve_info, 125 const void* resolve_info,
126 RequestPriority priority, 126 RequestPriority priority,
127 ClientSocketHandle* handle, 127 ClientSocketHandle* handle,
128 CompletionCallback* callback, 128 CompletionCallback* callback,
129 const BoundNetLog& net_log); 129 const BoundNetLog& net_log);
130 130
131 virtual void CancelRequest(const std::string& group_name, 131 virtual void CancelRequest(const std::string& group_name,
132 const ClientSocketHandle* handle); 132 ClientSocketHandle* handle);
133 133
134 virtual void ReleaseSocket(const std::string& group_name, 134 virtual void ReleaseSocket(const std::string& group_name,
135 ClientSocket* socket, 135 ClientSocket* socket,
136 int id); 136 int id);
137 137
138 virtual void Flush(); 138 virtual void Flush();
139 139
140 virtual void CloseIdleSockets(); 140 virtual void CloseIdleSockets();
141 141
142 virtual int IdleSocketCount() const { 142 virtual int IdleSocketCount() const {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 PoolBase base_; 194 PoolBase base_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); 196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool);
197 }; 197 };
198 198
199 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); 199 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams);
200 200
201 } // namespace net 201 } // namespace net
202 202
203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698