diff options
Diffstat (limited to 'chrome/browser/renderer_host/buffered_resource_handler.cc')
-rw-r--r-- | chrome/browser/renderer_host/buffered_resource_handler.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/browser/renderer_host/buffered_resource_handler.cc b/chrome/browser/renderer_host/buffered_resource_handler.cc index c49666c7..e1144c2 100644 --- a/chrome/browser/renderer_host/buffered_resource_handler.cc +++ b/chrome/browser/renderer_host/buffered_resource_handler.cc @@ -72,10 +72,8 @@ bool BufferedResourceHandler::OnResponseStarted(int request_id, bool BufferedResourceHandler::OnResponseCompleted( - int request_id, - const URLRequestStatus& status, - const std::string& security_info) { - return real_handler_->OnResponseCompleted(request_id, status, security_info); + int request_id, const URLRequestStatus& status) { + return real_handler_->OnResponseCompleted(request_id, status); } // We'll let the original event handler provide a buffer, and reuse it for @@ -244,7 +242,7 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id, // own error page instead of triggering a download. // TODO(abarth): We should abstract the response_code test, but this kind // of check is scattered throughout our codebase. - request_->SimulateError(net::ERR_FILE_NOT_FOUND); + request_->CancelWithError(net::ERR_FILE_NOT_FOUND); return false; } @@ -272,8 +270,7 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id, // handled by an external source (the browser's DownloadManager). real_handler_->OnResponseStarted(info->request_id, response_); URLRequestStatus status(URLRequestStatus::HANDLED_EXTERNALLY, 0); - real_handler_->OnResponseCompleted(info->request_id, status, - std::string()); + real_handler_->OnResponseCompleted(info->request_id, status); // Ditch the old async handler that talks to the renderer for the new // download handler that talks to the DownloadManager. |