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

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

Issue 2533063002: Fix Net.Socket.IdleSocketTimeSaving histogram (Closed)
Patch Set: self review Created 4 years 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/http/http_stream_factory_impl_unittest.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 #include "net/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 void HttpProxyClientSocketPool::CancelRequest( 241 void HttpProxyClientSocketPool::CancelRequest(
242 const std::string& group_name, 242 const std::string& group_name,
243 ClientSocketHandle* handle) { 243 ClientSocketHandle* handle) {
244 base_.CancelRequest(group_name, handle); 244 base_.CancelRequest(group_name, handle);
245 } 245 }
246 246
247 void HttpProxyClientSocketPool::ReleaseSocket( 247 void HttpProxyClientSocketPool::ReleaseSocket(
248 const std::string& group_name, 248 const std::string& group_name,
249 std::unique_ptr<StreamSocket> socket, 249 std::unique_ptr<StreamSocket> socket,
250 int id) { 250 int id,
251 base_.ReleaseSocket(group_name, std::move(socket), id); 251 const LoadTimingInfo::ConnectTiming& connect_timing) {
252 base_.ReleaseSocket(group_name, std::move(socket), id, connect_timing);
252 } 253 }
253 254
254 void HttpProxyClientSocketPool::FlushWithError(int error) { 255 void HttpProxyClientSocketPool::FlushWithError(int error) {
255 base_.FlushWithError(error); 256 base_.FlushWithError(error);
256 } 257 }
257 258
258 void HttpProxyClientSocketPool::CloseIdleSockets() { 259 void HttpProxyClientSocketPool::CloseIdleSockets() {
259 base_.CloseIdleSockets(); 260 base_.CloseIdleSockets();
260 } 261 }
261 262
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 base_.RemoveHigherLayeredPool(higher_pool); 314 base_.RemoveHigherLayeredPool(higher_pool);
314 } 315 }
315 316
316 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { 317 bool HttpProxyClientSocketPool::CloseOneIdleConnection() {
317 if (base_.CloseOneIdleSocket()) 318 if (base_.CloseOneIdleSocket())
318 return true; 319 return true;
319 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 320 return base_.CloseOneIdleConnectionInHigherLayeredPool();
320 } 321 }
321 322
322 } // namespace net 323 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/http/http_stream_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698