Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc

Issue 2761303002: Move common ImageFetcher component files to core/ (Closed)
Patch Set: Rebased. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h" 5 #include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "chrome/browser/favicon/favicon_service_factory.h" 13 #include "chrome/browser/favicon/favicon_service_factory.h"
14 #include "chrome/browser/history/top_sites_factory.h" 14 #include "chrome/browser/history/top_sites_factory.h"
15 #include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h" 15 #include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/search/suggestions/image_decoder_impl.h" 17 #include "chrome/browser/search/suggestions/image_decoder_impl.h"
18 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 18 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
19 #include "chrome/browser/supervised_user/supervised_user_service.h" 19 #include "chrome/browser/supervised_user/supervised_user_service.h"
20 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 20 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
21 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" 21 #include "chrome/browser/supervised_user/supervised_user_service_observer.h"
22 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" 22 #include "chrome/browser/supervised_user/supervised_user_url_filter.h"
23 #include "chrome/browser/thumbnails/thumbnail_list_source.h" 23 #include "chrome/browser/thumbnails/thumbnail_list_source.h"
24 #include "components/history/core/browser/top_sites.h" 24 #include "components/history/core/browser/top_sites.h"
25 #include "components/image_fetcher/image_fetcher_impl.h" 25 #include "components/image_fetcher/core/image_fetcher_impl.h"
26 #include "components/ntp_tiles/icon_cacher_impl.h" 26 #include "components/ntp_tiles/icon_cacher_impl.h"
27 #include "components/ntp_tiles/metrics.h" 27 #include "components/ntp_tiles/metrics.h"
28 #include "components/ntp_tiles/most_visited_sites.h" 28 #include "components/ntp_tiles/most_visited_sites.h"
29 29
30 using suggestions::SuggestionsServiceFactory; 30 using suggestions::SuggestionsServiceFactory;
31 31
32 namespace { 32 namespace {
33 33
34 class SupervisorBridge : public ntp_tiles::MostVisitedSitesSupervisor, 34 class SupervisorBridge : public ntp_tiles::MostVisitedSitesSupervisor,
35 public SupervisedUserServiceObserver { 35 public SupervisedUserServiceObserver {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 nullptr, 122 nullptr,
123 #endif 123 #endif
124 base::MakeUnique<ntp_tiles::IconCacherImpl>( 124 base::MakeUnique<ntp_tiles::IconCacherImpl>(
125 FaviconServiceFactory::GetForProfile( 125 FaviconServiceFactory::GetForProfile(
126 profile, ServiceAccessType::IMPLICIT_ACCESS), 126 profile, ServiceAccessType::IMPLICIT_ACCESS),
127 base::MakeUnique<image_fetcher::ImageFetcherImpl>( 127 base::MakeUnique<image_fetcher::ImageFetcherImpl>(
128 base::MakeUnique<suggestions::ImageDecoderImpl>(), 128 base::MakeUnique<suggestions::ImageDecoderImpl>(),
129 profile->GetRequestContext())), 129 profile->GetRequestContext())),
130 base::MakeUnique<SupervisorBridge>(profile)); 130 base::MakeUnique<SupervisorBridge>(profile));
131 } 131 }
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698