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

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: 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #include "chrome/browser/ui/webui/net_export_ui.h" 105 #include "chrome/browser/ui/webui/net_export_ui.h"
106 #else 106 #else
107 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" 107 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h"
108 #include "chrome/browser/signin/easy_unlock_service.h" 108 #include "chrome/browser/signin/easy_unlock_service.h"
109 #include "chrome/browser/signin/easy_unlock_service_factory.h" 109 #include "chrome/browser/signin/easy_unlock_service_factory.h"
110 #include "chrome/browser/ui/webui/copresence_ui.h" 110 #include "chrome/browser/ui/webui/copresence_ui.h"
111 #include "chrome/browser/ui/webui/devtools_ui.h" 111 #include "chrome/browser/ui/webui/devtools_ui.h"
112 #include "chrome/browser/ui/webui/inspect_ui.h" 112 #include "chrome/browser/ui/webui/inspect_ui.h"
113 #endif 113 #endif
114 114
115 #if defined(OS_ANDROID)
116 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
117 #endif
118
115 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS)
116 #include "base/sys_info.h" 120 #include "base/sys_info.h"
117 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 121 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
118 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" 122 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h"
119 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 123 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
120 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 124 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
121 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 125 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
122 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 126 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
123 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 127 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
124 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 128 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
(...skipping 368 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 #endif 778 #endif
771 779
772 // Android doesn't use the plugins pages. 780 // Android doesn't use the plugins pages.
773 if (page_url.host() == chrome::kChromeUIPluginsHost) 781 if (page_url.host() == chrome::kChromeUIPluginsHost)
774 return PluginsUI::GetFaviconResourceBytes(scale_factor); 782 return PluginsUI::GetFaviconResourceBytes(scale_factor);
775 783
776 #endif 784 #endif
777 785
778 return NULL; 786 return NULL;
779 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698