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

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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed nits Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_pool.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) 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 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 const std::string& group_name, 444 const std::string& group_name,
445 ClientSocketHandle* handle) { 445 ClientSocketHandle* handle) {
446 base_.CancelRequest(group_name, handle); 446 base_.CancelRequest(group_name, handle);
447 } 447 }
448 448
449 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name, 449 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name,
450 StreamSocket* socket, int id) { 450 StreamSocket* socket, int id) {
451 base_.ReleaseSocket(group_name, socket, id); 451 base_.ReleaseSocket(group_name, socket, id);
452 } 452 }
453 453
454 void HttpProxyClientSocketPool::Flush() { 454 void HttpProxyClientSocketPool::FlushWithError(int error) {
455 base_.Flush(); 455 base_.FlushWithError(error);
456 } 456 }
457 457
458 bool HttpProxyClientSocketPool::IsStalled() const { 458 bool HttpProxyClientSocketPool::IsStalled() const {
459 return base_.IsStalled() || 459 return base_.IsStalled() ||
460 (transport_pool_ && transport_pool_->IsStalled()) || 460 (transport_pool_ && transport_pool_->IsStalled()) ||
461 (ssl_pool_ && ssl_pool_->IsStalled()); 461 (ssl_pool_ && ssl_pool_->IsStalled());
462 } 462 }
463 463
464 void HttpProxyClientSocketPool::CloseIdleSockets() { 464 void HttpProxyClientSocketPool::CloseIdleSockets() {
465 base_.CloseIdleSockets(); 465 base_.CloseIdleSockets();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 return base_.histograms(); 517 return base_.histograms();
518 } 518 }
519 519
520 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { 520 bool HttpProxyClientSocketPool::CloseOneIdleConnection() {
521 if (base_.CloseOneIdleSocket()) 521 if (base_.CloseOneIdleSocket())
522 return true; 522 return true;
523 return base_.CloseOneIdleConnectionInLayeredPool(); 523 return base_.CloseOneIdleConnectionInLayeredPool();
524 } 524 }
525 525
526 } // namespace net 526 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/socket/client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698