OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ios/chrome/browser/ntp_tiles/ios_most_visited_sites_factory.h" | 5 #include "ios/chrome/browser/ntp_tiles/ios_most_visited_sites_factory.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" |
8 #include "components/history/core/browser/top_sites.h" | 9 #include "components/history/core/browser/top_sites.h" |
9 #include "components/image_fetcher/image_fetcher_impl.h" | 10 #include "components/image_fetcher/image_fetcher_impl.h" |
10 #include "components/keyed_service/core/service_access_type.h" | 11 #include "components/keyed_service/core/service_access_type.h" |
11 #include "components/ntp_tiles/icon_cacher_impl.h" | 12 #include "components/ntp_tiles/icon_cacher_impl.h" |
12 #include "components/ntp_tiles/most_visited_sites.h" | 13 #include "components/ntp_tiles/most_visited_sites.h" |
13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
14 #include "ios/chrome/browser/favicon/favicon_service_factory.h" | 15 #include "ios/chrome/browser/favicon/favicon_service_factory.h" |
15 #include "ios/chrome/browser/history/top_sites_factory.h" | 16 #include "ios/chrome/browser/history/top_sites_factory.h" |
16 #include "ios/chrome/browser/ntp_tiles/ios_popular_sites_factory.h" | 17 #include "ios/chrome/browser/ntp_tiles/ios_popular_sites_factory.h" |
17 #include "ios/chrome/browser/suggestions/ios_image_decoder_impl.h" | 18 #include "ios/chrome/browser/suggestions/ios_image_decoder_impl.h" |
(...skipping 14 matching lines...) Expand all Loading... |
32 suggestions::SuggestionsServiceFactory::GetForBrowserState(browser_state), | 33 suggestions::SuggestionsServiceFactory::GetForBrowserState(browser_state), |
33 IOSPopularSitesFactory::NewForBrowserState(browser_state), | 34 IOSPopularSitesFactory::NewForBrowserState(browser_state), |
34 base::MakeUnique<ntp_tiles::IconCacherImpl>( | 35 base::MakeUnique<ntp_tiles::IconCacherImpl>( |
35 ios::FaviconServiceFactory::GetForBrowserState( | 36 ios::FaviconServiceFactory::GetForBrowserState( |
36 browser_state, ServiceAccessType::IMPLICIT_ACCESS), | 37 browser_state, ServiceAccessType::IMPLICIT_ACCESS), |
37 base::MakeUnique<image_fetcher::ImageFetcherImpl>( | 38 base::MakeUnique<image_fetcher::ImageFetcherImpl>( |
38 suggestions::CreateIOSImageDecoder(task_runner), | 39 suggestions::CreateIOSImageDecoder(task_runner), |
39 browser_state->GetRequestContext())), | 40 browser_state->GetRequestContext())), |
40 nil); | 41 nil); |
41 } | 42 } |
OLD | NEW |