| 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 "components/favicon/core/large_icon_service.h" | 5 #include "components/favicon/core/large_icon_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
| 13 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
| 14 #include "components/favicon/core/favicon_service.h" | 15 #include "components/favicon/core/favicon_service.h" |
| 15 #include "components/favicon_base/fallback_icon_style.h" | 16 #include "components/favicon_base/fallback_icon_style.h" |
| 16 #include "components/favicon_base/favicon_types.h" | 17 #include "components/favicon_base/favicon_types.h" |
| 17 #include "skia/ext/image_operations.h" | 18 #include "skia/ext/image_operations.h" |
| 18 #include "ui/gfx/codec/png_codec.h" | 19 #include "ui/gfx/codec/png_codec.h" |
| 19 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // GetLargestRawFaviconForPageURL. Add the logic required to select the best | 194 // GetLargestRawFaviconForPageURL. Add the logic required to select the best |
| 194 // possible large icon. Also add logic to fetch-on-demand when the URL of | 195 // possible large icon. Also add logic to fetch-on-demand when the URL of |
| 195 // a large icon is known but its bitmap is not available. | 196 // a large icon is known but its bitmap is not available. |
| 196 return favicon_service_->GetLargestRawFaviconForPageURL( | 197 return favicon_service_->GetLargestRawFaviconForPageURL( |
| 197 page_url, large_icon_types_, min_source_size_in_pixel, | 198 page_url, large_icon_types_, min_source_size_in_pixel, |
| 198 base::Bind(&LargeIconWorker::OnIconLookupComplete, worker), | 199 base::Bind(&LargeIconWorker::OnIconLookupComplete, worker), |
| 199 tracker); | 200 tracker); |
| 200 } | 201 } |
| 201 | 202 |
| 202 } // namespace favicon | 203 } // namespace favicon |
| OLD | NEW |