| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/stream_resource_handler.h" | 5 #include "content/browser/loader/stream_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { | 49 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { |
| 50 writer_.OnReadCompleted(bytes_read, defer); | 50 writer_.OnReadCompleted(bytes_read, defer); |
| 51 return true; | 51 return true; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void StreamResourceHandler::OnResponseCompleted( | 54 void StreamResourceHandler::OnResponseCompleted( |
| 55 const net::URLRequestStatus& status, | 55 const net::URLRequestStatus& status, |
| 56 const std::string& sec_info, | |
| 57 bool* defer) { | 56 bool* defer) { |
| 58 writer_.Finalize(); | 57 writer_.Finalize(); |
| 59 } | 58 } |
| 60 | 59 |
| 61 void StreamResourceHandler::OnDataDownloaded(int bytes_downloaded) { | 60 void StreamResourceHandler::OnDataDownloaded(int bytes_downloaded) { |
| 62 NOTREACHED(); | 61 NOTREACHED(); |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace content | 64 } // namespace content |
| OLD | NEW |