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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return next_handler_->OnWillRead(buf, buf_size, min_size); | 56 return next_handler_->OnWillRead(buf, buf_size, min_size); |
57 } | 57 } |
58 | 58 |
59 bool LayeredResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { | 59 bool LayeredResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { |
60 DCHECK(next_handler_.get()); | 60 DCHECK(next_handler_.get()); |
61 return next_handler_->OnReadCompleted(bytes_read, defer); | 61 return next_handler_->OnReadCompleted(bytes_read, defer); |
62 } | 62 } |
63 | 63 |
64 void LayeredResourceHandler::OnResponseCompleted( | 64 void LayeredResourceHandler::OnResponseCompleted( |
65 const net::URLRequestStatus& status, | 65 const net::URLRequestStatus& status, |
66 const std::string& security_info, | |
67 bool* defer) { | 66 bool* defer) { |
68 DCHECK(next_handler_.get()); | 67 DCHECK(next_handler_.get()); |
69 next_handler_->OnResponseCompleted(status, security_info, defer); | 68 next_handler_->OnResponseCompleted(status, defer); |
70 } | 69 } |
71 | 70 |
72 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) { | 71 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) { |
73 DCHECK(next_handler_.get()); | 72 DCHECK(next_handler_.get()); |
74 next_handler_->OnDataDownloaded(bytes_downloaded); | 73 next_handler_->OnDataDownloaded(bytes_downloaded); |
75 } | 74 } |
76 | 75 |
77 } // namespace content | 76 } // namespace content |
OLD | NEW |