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

Side by Side Diff: net/http/http_pipelined_connection_impl.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_network_session.cc ('k') | net/http/http_proxy_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_pipelined_connection_impl.h" 5 #include "net/http/http_pipelined_connection_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 695
696 void HttpPipelinedConnectionImpl::CheckHeadersForPipelineCompatibility( 696 void HttpPipelinedConnectionImpl::CheckHeadersForPipelineCompatibility(
697 int pipeline_id, 697 int pipeline_id,
698 int result) { 698 int result) {
699 if (result < OK) { 699 if (result < OK) {
700 switch (result) { 700 switch (result) {
701 // TODO(simonjam): Ignoring specific errors like this may not work. 701 // TODO(simonjam): Ignoring specific errors like this may not work.
702 // Collect metrics to see if this code is useful. 702 // Collect metrics to see if this code is useful.
703 case ERR_ABORTED: 703 case ERR_ABORTED:
704 case ERR_INTERNET_DISCONNECTED: 704 case ERR_INTERNET_DISCONNECTED:
705 case ERR_NETWORK_CHANGED:
705 // These errors are no fault of the server. 706 // These errors are no fault of the server.
706 break; 707 break;
707 708
708 default: 709 default:
709 ReportPipelineFeedback(pipeline_id, PIPELINE_SOCKET_ERROR); 710 ReportPipelineFeedback(pipeline_id, PIPELINE_SOCKET_ERROR);
710 break; 711 break;
711 } 712 }
712 return; 713 return;
713 } 714 }
714 HttpResponseInfo* info = GetResponseInfo(pipeline_id); 715 HttpResponseInfo* info = GetResponseInfo(pipeline_id);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 } 831 }
831 832
832 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo() 833 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo()
833 : state(STREAM_CREATED) { 834 : state(STREAM_CREATED) {
834 } 835 }
835 836
836 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() { 837 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() {
837 } 838 }
838 839
839 } // namespace net 840 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_proxy_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698