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

Side by Side Diff: net/http/http_proxy_client_socket_pool.cc

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/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_handle.h » ('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 #include "net/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/http/http_proxy_client_socket.h" 10 #include "net/http/http_proxy_client_socket.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const BoundNetLog& net_log) { 192 const BoundNetLog& net_log) {
193 const scoped_refptr<HttpProxySocketParams>* casted_socket_params = 193 const scoped_refptr<HttpProxySocketParams>* casted_socket_params =
194 static_cast<const scoped_refptr<HttpProxySocketParams>*>(socket_params); 194 static_cast<const scoped_refptr<HttpProxySocketParams>*>(socket_params);
195 195
196 return base_.RequestSocket(group_name, *casted_socket_params, priority, 196 return base_.RequestSocket(group_name, *casted_socket_params, priority,
197 handle, callback, net_log); 197 handle, callback, net_log);
198 } 198 }
199 199
200 void HttpProxyClientSocketPool::CancelRequest( 200 void HttpProxyClientSocketPool::CancelRequest(
201 const std::string& group_name, 201 const std::string& group_name,
202 const ClientSocketHandle* handle) { 202 ClientSocketHandle* handle) {
203 base_.CancelRequest(group_name, handle); 203 base_.CancelRequest(group_name, handle);
204 } 204 }
205 205
206 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name, 206 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name,
207 ClientSocket* socket, int id) { 207 ClientSocket* socket, int id) {
208 base_.ReleaseSocket(group_name, socket, id); 208 base_.ReleaseSocket(group_name, socket, id);
209 } 209 }
210 210
211 void HttpProxyClientSocketPool::Flush() { 211 void HttpProxyClientSocketPool::Flush() {
212 base_.Flush(); 212 base_.Flush();
213 } 213 }
214 214
215 void HttpProxyClientSocketPool::CloseIdleSockets() { 215 void HttpProxyClientSocketPool::CloseIdleSockets() {
216 base_.CloseIdleSockets(); 216 base_.CloseIdleSockets();
217 } 217 }
218 218
219 int HttpProxyClientSocketPool::IdleSocketCountInGroup( 219 int HttpProxyClientSocketPool::IdleSocketCountInGroup(
220 const std::string& group_name) const { 220 const std::string& group_name) const {
221 return base_.IdleSocketCountInGroup(group_name); 221 return base_.IdleSocketCountInGroup(group_name);
222 } 222 }
223 223
224 LoadState HttpProxyClientSocketPool::GetLoadState( 224 LoadState HttpProxyClientSocketPool::GetLoadState(
225 const std::string& group_name, const ClientSocketHandle* handle) const { 225 const std::string& group_name, const ClientSocketHandle* handle) const {
226 return base_.GetLoadState(group_name, handle); 226 return base_.GetLoadState(group_name, handle);
227 } 227 }
228 228
229 } // namespace net 229 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698