| 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/loader/doomed_resource_handler.h" | 5 #include "content/browser/loader/doomed_resource_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" |
| 7 #include "net/url_request/url_request_status.h" | 8 #include "net/url_request/url_request_status.h" |
| 8 | 9 |
| 9 namespace content { | 10 namespace content { |
| 10 | 11 |
| 11 DoomedResourceHandler::DoomedResourceHandler( | 12 DoomedResourceHandler::DoomedResourceHandler( |
| 12 scoped_ptr<ResourceHandler> old_handler) | 13 scoped_ptr<ResourceHandler> old_handler) |
| 13 : old_handler_(old_handler.Pass()) { | 14 : old_handler_(old_handler.Pass()) { |
| 14 } | 15 } |
| 15 | 16 |
| 16 DoomedResourceHandler::~DoomedResourceHandler() { | 17 DoomedResourceHandler::~DoomedResourceHandler() { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 status.status() == net::URLRequestStatus::FAILED); | 69 status.status() == net::URLRequestStatus::FAILED); |
| 69 return true; | 70 return true; |
| 70 } | 71 } |
| 71 | 72 |
| 72 void DoomedResourceHandler::OnDataDownloaded(int request_id, | 73 void DoomedResourceHandler::OnDataDownloaded(int request_id, |
| 73 int bytes_downloaded) { | 74 int bytes_downloaded) { |
| 74 NOTREACHED(); | 75 NOTREACHED(); |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| OLD | NEW |