OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |