| 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/layered_resource_handler.h" | 5 #include "content/browser/loader/layered_resource_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 LayeredResourceHandler::LayeredResourceHandler( | 11 LayeredResourceHandler::LayeredResourceHandler( |
| 12 scoped_ptr<ResourceHandler> next_handler) | 12 scoped_ptr<ResourceHandler> next_handler) |
| 13 : next_handler_(next_handler.Pass()) { | 13 : next_handler_(next_handler.Pass()) { |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return next_handler_->OnResponseCompleted(request_id, status, security_info); | 74 return next_handler_->OnResponseCompleted(request_id, status, security_info); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void LayeredResourceHandler::OnDataDownloaded(int request_id, | 77 void LayeredResourceHandler::OnDataDownloaded(int request_id, |
| 78 int bytes_downloaded) { | 78 int bytes_downloaded) { |
| 79 DCHECK(next_handler_.get()); | 79 DCHECK(next_handler_.get()); |
| 80 next_handler_->OnDataDownloaded(request_id, bytes_downloaded); | 80 next_handler_->OnDataDownloaded(request_id, bytes_downloaded); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace content | 83 } // namespace content |
| OLD | NEW |