| 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/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 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 DCHECK(next_handler_.get()); | 49 DCHECK(next_handler_.get()); |
| 50 return next_handler_->OnResponseStarted(request_id, response, defer); | 50 return next_handler_->OnResponseStarted(request_id, response, defer); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool LayeredResourceHandler::OnWillStart(int request_id, const GURL& url, | 53 bool LayeredResourceHandler::OnWillStart(int request_id, const GURL& url, |
| 54 bool* defer) { | 54 bool* defer) { |
| 55 DCHECK(next_handler_.get()); | 55 DCHECK(next_handler_.get()); |
| 56 return next_handler_->OnWillStart(request_id, url, defer); | 56 return next_handler_->OnWillStart(request_id, url, defer); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool LayeredResourceHandler::OnBeforeNetworkStart(int request_id, |
| 60 const GURL& url, |
| 61 bool* defer) { |
| 62 DCHECK(next_handler_.get()); |
| 63 return next_handler_->OnBeforeNetworkStart(request_id, url, defer); |
| 64 } |
| 65 |
| 59 bool LayeredResourceHandler::OnWillRead(int request_id, | 66 bool LayeredResourceHandler::OnWillRead(int request_id, |
| 60 scoped_refptr<net::IOBuffer>* buf, | 67 scoped_refptr<net::IOBuffer>* buf, |
| 61 int* buf_size, | 68 int* buf_size, |
| 62 int min_size) { | 69 int min_size) { |
| 63 DCHECK(next_handler_.get()); | 70 DCHECK(next_handler_.get()); |
| 64 return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); | 71 return next_handler_->OnWillRead(request_id, buf, buf_size, min_size); |
| 65 } | 72 } |
| 66 | 73 |
| 67 bool LayeredResourceHandler::OnReadCompleted(int request_id, int bytes_read, | 74 bool LayeredResourceHandler::OnReadCompleted(int request_id, int bytes_read, |
| 68 bool* defer) { | 75 bool* defer) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 79 next_handler_->OnResponseCompleted(request_id, status, security_info, defer); | 86 next_handler_->OnResponseCompleted(request_id, status, security_info, defer); |
| 80 } | 87 } |
| 81 | 88 |
| 82 void LayeredResourceHandler::OnDataDownloaded(int request_id, | 89 void LayeredResourceHandler::OnDataDownloaded(int request_id, |
| 83 int bytes_downloaded) { | 90 int bytes_downloaded) { |
| 84 DCHECK(next_handler_.get()); | 91 DCHECK(next_handler_.get()); |
| 85 next_handler_->OnDataDownloaded(request_id, bytes_downloaded); | 92 next_handler_->OnDataDownloaded(request_id, bytes_downloaded); |
| 86 } | 93 } |
| 87 | 94 |
| 88 } // namespace content | 95 } // namespace content |
| OLD | NEW |