OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/renderer/image_downloader/image_downloader_impl.h" | 5 #include "content/renderer/image_downloader/image_downloader_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 void ImageDownloaderImpl::ReplyDownloadResult( | 216 void ImageDownloaderImpl::ReplyDownloadResult( |
217 int32_t http_status_code, | 217 int32_t http_status_code, |
218 const std::vector<SkBitmap>& result_images, | 218 const std::vector<SkBitmap>& result_images, |
219 const std::vector<gfx::Size>& result_original_image_sizes, | 219 const std::vector<gfx::Size>& result_original_image_sizes, |
220 const DownloadImageCallback& callback) { | 220 const DownloadImageCallback& callback) { |
221 callback.Run(http_status_code, mojo::Array<SkBitmap>::From(result_images), | 221 callback.Run(http_status_code, mojo::Array<SkBitmap>::From(result_images), |
222 result_original_image_sizes); | 222 result_original_image_sizes); |
223 } | 223 } |
224 | 224 |
| 225 void ImageDownloaderImpl::OnDestruct() { |
| 226 delete this; |
| 227 } |
| 228 |
225 } // namespace content | 229 } // namespace content |
OLD | NEW |