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

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

Issue 1340493002: Add initial version of chrome://popular-sites-internals page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@finch_country_version
Patch Set: review3 Created 5 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_web_ui_controller_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "chrome/browser/ui/webui/net_export_ui.h" 107 #include "chrome/browser/ui/webui/net_export_ui.h"
108 #else 108 #else
109 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" 109 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h"
110 #include "chrome/browser/signin/easy_unlock_service.h" 110 #include "chrome/browser/signin/easy_unlock_service.h"
111 #include "chrome/browser/signin/easy_unlock_service_factory.h" 111 #include "chrome/browser/signin/easy_unlock_service_factory.h"
112 #include "chrome/browser/ui/webui/copresence_ui.h" 112 #include "chrome/browser/ui/webui/copresence_ui.h"
113 #include "chrome/browser/ui/webui/devtools_ui.h" 113 #include "chrome/browser/ui/webui/devtools_ui.h"
114 #include "chrome/browser/ui/webui/inspect_ui.h" 114 #include "chrome/browser/ui/webui/inspect_ui.h"
115 #endif 115 #endif
116 116
117 #if defined(OS_ANDROID)
118 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
119 #endif
120
117 #if defined(OS_CHROMEOS) 121 #if defined(OS_CHROMEOS)
118 #include "base/sys_info.h" 122 #include "base/sys_info.h"
119 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 123 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
120 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" 124 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h"
121 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 125 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
122 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 126 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
123 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 127 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
124 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 128 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
125 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 129 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
126 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 130 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 return &NewWebUI<DevToolsUI>; 497 return &NewWebUI<DevToolsUI>;
494 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost) 498 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost)
495 return &NewWebUI<WebRTCDeviceProvider::WebUI>; 499 return &NewWebUI<WebRTCDeviceProvider::WebUI>;
496 500
497 // chrome://inspect isn't supported on Android nor iOS. Page debugging is 501 // chrome://inspect isn't supported on Android nor iOS. Page debugging is
498 // handled by a remote devtools on the host machine, and other elements, i.e. 502 // handled by a remote devtools on the host machine, and other elements, i.e.
499 // extensions aren't supported. 503 // extensions aren't supported.
500 if (url.host() == chrome::kChromeUIInspectHost) 504 if (url.host() == chrome::kChromeUIInspectHost)
501 return &NewWebUI<InspectUI>; 505 return &NewWebUI<InspectUI>;
502 #endif 506 #endif
507 #if defined(OS_ANDROID)
508 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost)
509 return &NewWebUI<PopularSitesInternalsUI>;
510 #endif
503 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) 511 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
504 if (url.host() == chrome::kChromeUIUserManagerHost && 512 if (url.host() == chrome::kChromeUIUserManagerHost &&
505 switches::IsNewAvatarMenu()) { 513 switches::IsNewAvatarMenu()) {
506 return &NewWebUI<UserManagerUI>; 514 return &NewWebUI<UserManagerUI>;
507 } 515 }
508 #endif 516 #endif
509 517
510 /**************************************************************************** 518 /****************************************************************************
511 * Other #defines and special logics. 519 * Other #defines and special logics.
512 ***************************************************************************/ 520 ***************************************************************************/
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 #endif 783 #endif
776 784
777 // Android doesn't use the plugins pages. 785 // Android doesn't use the plugins pages.
778 if (page_url.host() == chrome::kChromeUIPluginsHost) 786 if (page_url.host() == chrome::kChromeUIPluginsHost)
779 return PluginsUI::GetFaviconResourceBytes(scale_factor); 787 return PluginsUI::GetFaviconResourceBytes(scale_factor);
780 788
781 #endif 789 #endif
782 790
783 return NULL; 791 return NULL;
784 } 792 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/popular_sites_internals.js ('k') | chrome/browser/ui/webui/popular_sites_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698