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

Side by Side Diff: chrome/browser/ui/webui/ntp_tiles_internals_ui.cc

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (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 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 "chrome/browser/ui/webui/ntp_tiles_internals_ui.h" 5 #include "chrome/browser/ui/webui/ntp_tiles_internals_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "chrome/browser/favicon/favicon_service_factory.h" 9 #include "chrome/browser/favicon/favicon_service_factory.h"
10 #include "chrome/browser/history/top_sites_factory.h" 10 #include "chrome/browser/history/top_sites_factory.h"
11 #include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h" 11 #include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search/suggestions/image_decoder_impl.h"
14 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 13 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
15 #include "chrome/browser/search_engines/template_url_service_factory.h" 14 #include "chrome/browser/search_engines/template_url_service_factory.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "components/grit/components_resources.h" 16 #include "components/grit/components_resources.h"
18 #include "components/history/core/browser/top_sites.h" 17 #include "components/history/core/browser/top_sites.h"
18 #include "components/image_fetcher/content/image_decoder_impl.h"
19 #include "components/image_fetcher/core/image_fetcher_impl.h" 19 #include "components/image_fetcher/core/image_fetcher_impl.h"
20 #include "components/ntp_tiles/field_trial.h" 20 #include "components/ntp_tiles/field_trial.h"
21 #include "components/ntp_tiles/icon_cacher.h" 21 #include "components/ntp_tiles/icon_cacher.h"
22 #include "components/ntp_tiles/most_visited_sites.h" 22 #include "components/ntp_tiles/most_visited_sites.h"
23 #include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h" 23 #include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h"
24 #include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client. h" 24 #include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client. h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "content/public/browser/web_ui.h" 26 #include "content/public/browser/web_ui.h"
27 #include "content/public/browser/web_ui_data_source.h" 27 #include "content/public/browser/web_ui_data_source.h"
28 #include "content/public/browser/web_ui_message_handler.h" 28 #include "content/public/browser/web_ui_message_handler.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 NTPTilesInternalsUI::NTPTilesInternalsUI(content::WebUI* web_ui) 122 NTPTilesInternalsUI::NTPTilesInternalsUI(content::WebUI* web_ui)
123 : WebUIController(web_ui) { 123 : WebUIController(web_ui) {
124 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), 124 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui),
125 CreateNTPTilesInternalsHTMLSource()); 125 CreateNTPTilesInternalsHTMLSource());
126 web_ui->AddMessageHandler( 126 web_ui->AddMessageHandler(
127 base::MakeUnique<ChromeNTPTilesInternalsMessageHandlerClient>()); 127 base::MakeUnique<ChromeNTPTilesInternalsMessageHandlerClient>());
128 } 128 }
129 129
130 NTPTilesInternalsUI::~NTPTilesInternalsUI() {} 130 NTPTilesInternalsUI::~NTPTilesInternalsUI() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698