| 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 "content/browser/renderer_host/doomed_resource_handler.h" | 5 #include "content/browser/renderer_host/doomed_resource_handler.h" |
| 6 | 6 |
| 7 #include "net/url_request/url_request_status.h" | 7 #include "net/url_request/url_request_status.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 bool DoomedResourceHandler::OnWillRead(int request_id, | 48 bool DoomedResourceHandler::OnWillRead(int request_id, |
| 49 net::IOBuffer** buf, | 49 net::IOBuffer** buf, |
| 50 int* buf_size, | 50 int* buf_size, |
| 51 int min_size) { | 51 int min_size) { |
| 52 NOTREACHED(); | 52 NOTREACHED(); |
| 53 return true; | 53 return true; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool DoomedResourceHandler::OnReadCompleted(int request_id, | 56 bool DoomedResourceHandler::OnReadCompleted(int request_id, |
| 57 int* bytes_read, | 57 int bytes_read, |
| 58 bool* defer) { | 58 bool* defer) { |
| 59 NOTREACHED(); | 59 NOTREACHED(); |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool DoomedResourceHandler::OnResponseCompleted( | 63 bool DoomedResourceHandler::OnResponseCompleted( |
| 64 int request_id, | 64 int request_id, |
| 65 const net::URLRequestStatus& status, | 65 const net::URLRequestStatus& status, |
| 66 const std::string& security_info) { | 66 const std::string& security_info) { |
| 67 DCHECK(status.status() == net::URLRequestStatus::CANCELED || | 67 DCHECK(status.status() == net::URLRequestStatus::CANCELED || |
| 68 status.status() == net::URLRequestStatus::FAILED); | 68 status.status() == net::URLRequestStatus::FAILED); |
| 69 return true; | 69 return true; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void DoomedResourceHandler::OnDataDownloaded(int request_id, | 72 void DoomedResourceHandler::OnDataDownloaded(int request_id, |
| 73 int bytes_downloaded) { | 73 int bytes_downloaded) { |
| 74 NOTREACHED(); | 74 NOTREACHED(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace content | 77 } // namespace content |
| OLD | NEW |