| 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.h" | 7 #include "net/url_request/url_request.h" |
| 8 | 8 |
| 9 DoomedResourceHandler::DoomedResourceHandler(ResourceHandler* old_handler) | 9 DoomedResourceHandler::DoomedResourceHandler(ResourceHandler* old_handler) |
| 10 : old_handler_(old_handler) { | 10 : old_handler_(old_handler) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 bool DoomedResourceHandler::OnRequestRedirected( | 23 bool DoomedResourceHandler::OnRequestRedirected( |
| 24 int request_id, | 24 int request_id, |
| 25 const GURL& new_url, | 25 const GURL& new_url, |
| 26 content::ResourceResponse* response, | 26 content::ResourceResponse* response, |
| 27 bool* defer) { | 27 bool* defer) { |
| 28 NOTREACHED(); | 28 NOTREACHED(); |
| 29 return true; | 29 return true; |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool DoomedResourceHandler::OnResponseStarted( | 32 bool DoomedResourceHandler::OnResponseStarted( |
| 33 int request_id, content::ResourceResponse* response) { | 33 int request_id, content::ResourceResponse* response, |
| 34 bool* defer) { |
| 34 NOTREACHED(); | 35 NOTREACHED(); |
| 35 return true; | 36 return true; |
| 36 } | 37 } |
| 37 | 38 |
| 38 bool DoomedResourceHandler::OnWillStart(int request_id, | 39 bool DoomedResourceHandler::OnWillStart(int request_id, |
| 39 const GURL& url, | 40 const GURL& url, |
| 40 bool* defer) { | 41 bool* defer) { |
| 41 NOTREACHED(); | 42 NOTREACHED(); |
| 42 return true; | 43 return true; |
| 43 } | 44 } |
| 44 | 45 |
| 45 bool DoomedResourceHandler::OnWillRead(int request_id, | 46 bool DoomedResourceHandler::OnWillRead(int request_id, |
| 46 net::IOBuffer** buf, | 47 net::IOBuffer** buf, |
| 47 int* buf_size, | 48 int* buf_size, |
| 48 int min_size) { | 49 int min_size) { |
| 49 NOTREACHED(); | 50 NOTREACHED(); |
| 50 return true; | 51 return true; |
| 51 } | 52 } |
| 52 | 53 |
| 53 bool DoomedResourceHandler::OnReadCompleted(int request_id, | 54 bool DoomedResourceHandler::OnReadCompleted(int request_id, |
| 54 int* bytes_read) { | 55 int* bytes_read, |
| 56 bool* defer) { |
| 55 NOTREACHED(); | 57 NOTREACHED(); |
| 56 return true; | 58 return true; |
| 57 } | 59 } |
| 58 | 60 |
| 59 bool DoomedResourceHandler::OnResponseCompleted( | 61 bool DoomedResourceHandler::OnResponseCompleted( |
| 60 int request_id, | 62 int request_id, |
| 61 const net::URLRequestStatus& status, | 63 const net::URLRequestStatus& status, |
| 62 const std::string& security_info) { | 64 const std::string& security_info) { |
| 63 DCHECK(status.status() == net::URLRequestStatus::CANCELED || | 65 DCHECK(status.status() == net::URLRequestStatus::CANCELED || |
| 64 status.status() == net::URLRequestStatus::FAILED); | 66 status.status() == net::URLRequestStatus::FAILED); |
| 65 return true; | 67 return true; |
| 66 } | 68 } |
| 67 | 69 |
| 68 void DoomedResourceHandler::OnRequestClosed() { | 70 void DoomedResourceHandler::OnRequestClosed() { |
| 69 } | 71 } |
| 70 | 72 |
| 71 void DoomedResourceHandler::OnDataDownloaded(int request_id, | 73 void DoomedResourceHandler::OnDataDownloaded(int request_id, |
| 72 int bytes_downloaded) { | 74 int bytes_downloaded) { |
| 73 NOTREACHED(); | 75 NOTREACHED(); |
| 74 } | 76 } |
| OLD | NEW |