| 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/renderer_host/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 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 DCHECK(next_handler_.get()); | 53 DCHECK(next_handler_.get()); |
| 54 return next_handler_->OnWillStart(request_id, url, defer); | 54 return next_handler_->OnWillStart(request_id, url, defer); |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool LayeredResourceHandler::OnWillRead(int request_id, net::IOBuffer** buf, | 57 bool LayeredResourceHandler::OnWillRead(int request_id, net::IOBuffer** buf, |
| 58 int* buf_size, int min_size) { | 58 int* buf_size, int min_size) { |
| 59 DCHECK(next_handler_.get()); | 59 DCHECK(next_handler_.get()); |
| 60 return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); | 60 return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool LayeredResourceHandler::OnReadCompleted(int request_id, int* bytes_read, | 63 bool LayeredResourceHandler::OnReadCompleted(int request_id, int bytes_read, |
| 64 bool* defer) { | 64 bool* defer) { |
| 65 DCHECK(next_handler_.get()); | 65 DCHECK(next_handler_.get()); |
| 66 return next_handler_->OnReadCompleted(request_id, bytes_read, defer); | 66 return next_handler_->OnReadCompleted(request_id, bytes_read, defer); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool LayeredResourceHandler::OnResponseCompleted( | 69 bool LayeredResourceHandler::OnResponseCompleted( |
| 70 int request_id, | 70 int request_id, |
| 71 const net::URLRequestStatus& status, | 71 const net::URLRequestStatus& status, |
| 72 const std::string& security_info) { | 72 const std::string& security_info) { |
| 73 DCHECK(next_handler_.get()); | 73 DCHECK(next_handler_.get()); |
| 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 |