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

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host.cc

Issue 269064: Set os_error to net::ERR_ABORTED instead of 0 or net::ERR_FAILED when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 route_id, request_id, status, std::string())); 470 route_id, request_id, status, std::string()));
471 success = true; 471 success = true;
472 } 472 }
473 } 473 }
474 } 474 }
475 if (!success) { 475 if (!success) {
476 // Cannot send a substitution response, just cancel. 476 // Cannot send a substitution response, just cancel.
477 receiver_->Send(new ViewMsg_Resource_RequestComplete( 477 receiver_->Send(new ViewMsg_Resource_RequestComplete(
478 route_id, 478 route_id,
479 request_id, 479 request_id,
480 URLRequestStatus(URLRequestStatus::CANCELED, net::ERR_FAILED), 480 URLRequestStatus(URLRequestStatus::CANCELED, net::ERR_ABORTED),
481 std::string())); 481 std::string()));
482 } 482 }
483 } 483 }
484 return; 484 return;
485 } 485 }
486 486
487 // To fetch a blocked resource, convert the unblock URL to the original one. 487 // To fetch a blocked resource, convert the unblock URL to the original one.
488 GURL gurl = request_data.url.scheme() != chrome::kUnblockScheme ? 488 GURL gurl = request_data.url.scheme() != chrome::kUnblockScheme ?
489 request_data.url : GURL(blocked_.GetOriginalURL(url)); 489 request_data.url : GURL(blocked_.GetOriginalURL(url));
490 490
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 case ViewHostMsg_UploadProgress_ACK::ID: 1784 case ViewHostMsg_UploadProgress_ACK::ID:
1785 case ViewHostMsg_SyncLoad::ID: 1785 case ViewHostMsg_SyncLoad::ID:
1786 return true; 1786 return true;
1787 1787
1788 default: 1788 default:
1789 break; 1789 break;
1790 } 1790 }
1791 1791
1792 return false; 1792 return false;
1793 } 1793 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/url_request_automation_job.cc ('k') | chrome/common/security_filter_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698