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

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

Issue 9433015: Add a force pipelining option to load flags. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix build on other platforms Created 8 years, 10 months 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
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_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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 case ERR_SOCKET_NOT_CONNECTED: 1201 case ERR_SOCKET_NOT_CONNECTED:
1202 if (ShouldResendRequest(error)) { 1202 if (ShouldResendRequest(error)) {
1203 net_log_.AddEvent( 1203 net_log_.AddEvent(
1204 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, 1204 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1205 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); 1205 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1206 ResetConnectionAndRequestForResend(); 1206 ResetConnectionAndRequestForResend();
1207 error = OK; 1207 error = OK;
1208 } 1208 }
1209 break; 1209 break;
1210 case ERR_PIPELINE_EVICTION: 1210 case ERR_PIPELINE_EVICTION:
1211 if (!(request_->load_flags & LOAD_FORCE_HTTP_PIPELINING)) {
1212 net_log_.AddEvent(
1213 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1214 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1215 ResetConnectionAndRequestForResend();
1216 error = OK;
1217 }
1218 break;
1211 case ERR_SPDY_PING_FAILED: 1219 case ERR_SPDY_PING_FAILED:
1212 case ERR_SPDY_SERVER_REFUSED_STREAM: 1220 case ERR_SPDY_SERVER_REFUSED_STREAM:
1213 net_log_.AddEvent( 1221 net_log_.AddEvent(
1214 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, 1222 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1215 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); 1223 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1216 ResetConnectionAndRequestForResend(); 1224 ResetConnectionAndRequestForResend();
1217 error = OK; 1225 error = OK;
1218 break; 1226 break;
1219 } 1227 }
1220 return error; 1228 return error;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1360 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1353 state); 1361 state);
1354 break; 1362 break;
1355 } 1363 }
1356 return description; 1364 return description;
1357 } 1365 }
1358 1366
1359 #undef STATE_CASE 1367 #undef STATE_CASE
1360 1368
1361 } // namespace net 1369 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698