OLD | NEW |
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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 90 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
91 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 91 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
92 #endif | 92 #endif |
93 | 93 |
94 #if defined(OS_ANDROID) || defined(OS_IOS) | 94 #if defined(OS_ANDROID) || defined(OS_IOS) |
95 #include "chrome/browser/ui/webui/net_export_ui.h" | 95 #include "chrome/browser/ui/webui/net_export_ui.h" |
96 #endif | 96 #endif |
97 | 97 |
98 #if defined(OS_CHROMEOS) | 98 #if defined(OS_CHROMEOS) |
99 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 99 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 100 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" |
100 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 101 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
101 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 102 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
102 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 103 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
103 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 104 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
104 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 105 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
105 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 106 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
106 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 107 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
107 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
108 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
109 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 if (url.host() == chrome::kChromeUIMetroFlowHost) | 368 if (url.host() == chrome::kChromeUIMetroFlowHost) |
368 return &NewWebUI<SetAsDefaultBrowserUI>; | 369 return &NewWebUI<SetAsDefaultBrowserUI>; |
369 #endif | 370 #endif |
370 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 371 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
371 if (url.host() == chrome::kChromeUICertificateViewerHost) | 372 if (url.host() == chrome::kChromeUICertificateViewerHost) |
372 return &NewWebUI<CertificateViewerUI>; | 373 return &NewWebUI<CertificateViewerUI>; |
373 #endif | 374 #endif |
374 #if defined(OS_CHROMEOS) | 375 #if defined(OS_CHROMEOS) |
375 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 376 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
376 return &NewWebUI<chromeos::BluetoothPairingUI>; | 377 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 378 if (url.host() == chrome::kChromeUIChargerReplacementHost) |
| 379 return &NewWebUI<chromeos::ChargerReplacementUI>; |
377 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 380 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
378 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 381 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
379 if (url.host() == chrome::kChromeUICryptohomeHost) | 382 if (url.host() == chrome::kChromeUICryptohomeHost) |
380 return &NewWebUI<chromeos::CryptohomeUI>; | 383 return &NewWebUI<chromeos::CryptohomeUI>; |
381 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 384 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
382 return &NewWebUI<chromeos::DriveInternalsUI>; | 385 return &NewWebUI<chromeos::DriveInternalsUI>; |
383 if (url.host() == chrome::kChromeUIFirstRunHost) | 386 if (url.host() == chrome::kChromeUIFirstRunHost) |
384 return &NewWebUI<chromeos::FirstRunUI>; | 387 return &NewWebUI<chromeos::FirstRunUI>; |
385 if (url.host() == chrome::kChromeUIImageBurnerHost) | 388 if (url.host() == chrome::kChromeUIImageBurnerHost) |
386 return &NewWebUI<ImageBurnUI>; | 389 return &NewWebUI<ImageBurnUI>; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 if (page_url.host() == chrome::kChromeUIPluginsHost) | 649 if (page_url.host() == chrome::kChromeUIPluginsHost) |
647 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 650 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
648 | 651 |
649 // Android doesn't use the components pages. | 652 // Android doesn't use the components pages. |
650 if (page_url.host() == chrome::kChromeUIComponentsHost) | 653 if (page_url.host() == chrome::kChromeUIComponentsHost) |
651 return ComponentsUI::GetFaviconResourceBytes(scale_factor); | 654 return ComponentsUI::GetFaviconResourceBytes(scale_factor); |
652 #endif | 655 #endif |
653 | 656 |
654 return NULL; | 657 return NULL; |
655 } | 658 } |
OLD | NEW |