| 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 case ERR_SOCKET_NOT_CONNECTED: | 1202 case ERR_SOCKET_NOT_CONNECTED: |
| 1203 if (ShouldResendRequest(error)) { | 1203 if (ShouldResendRequest(error)) { |
| 1204 net_log_.AddEvent( | 1204 net_log_.AddEvent( |
| 1205 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, | 1205 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, |
| 1206 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); | 1206 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); |
| 1207 ResetConnectionAndRequestForResend(); | 1207 ResetConnectionAndRequestForResend(); |
| 1208 error = OK; | 1208 error = OK; |
| 1209 } | 1209 } |
| 1210 break; | 1210 break; |
| 1211 case ERR_PIPELINE_EVICTION: | 1211 case ERR_PIPELINE_EVICTION: |
| 1212 if (!session_->force_http_pipelining()) { |
| 1213 net_log_.AddEvent( |
| 1214 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, |
| 1215 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); |
| 1216 ResetConnectionAndRequestForResend(); |
| 1217 error = OK; |
| 1218 } |
| 1219 break; |
| 1212 case ERR_SPDY_PING_FAILED: | 1220 case ERR_SPDY_PING_FAILED: |
| 1213 case ERR_SPDY_SERVER_REFUSED_STREAM: | 1221 case ERR_SPDY_SERVER_REFUSED_STREAM: |
| 1214 net_log_.AddEvent( | 1222 net_log_.AddEvent( |
| 1215 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, | 1223 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, |
| 1216 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); | 1224 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); |
| 1217 ResetConnectionAndRequestForResend(); | 1225 ResetConnectionAndRequestForResend(); |
| 1218 error = OK; | 1226 error = OK; |
| 1219 break; | 1227 break; |
| 1220 } | 1228 } |
| 1221 return error; | 1229 return error; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1363 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
| 1356 state); | 1364 state); |
| 1357 break; | 1365 break; |
| 1358 } | 1366 } |
| 1359 return description; | 1367 return description; |
| 1360 } | 1368 } |
| 1361 | 1369 |
| 1362 #undef STATE_CASE | 1370 #undef STATE_CASE |
| 1363 | 1371 |
| 1364 } // namespace net | 1372 } // namespace net |
| OLD | NEW |