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