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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 89 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
90 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 90 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
91 #endif | 91 #endif |
92 | 92 |
93 #if defined(OS_ANDROID) || defined(OS_IOS) | 93 #if defined(OS_ANDROID) || defined(OS_IOS) |
94 #include "chrome/browser/ui/webui/net_export_ui.h" | 94 #include "chrome/browser/ui/webui/net_export_ui.h" |
95 #endif | 95 #endif |
96 | 96 |
97 #if defined(OS_CHROMEOS) | 97 #if defined(OS_CHROMEOS) |
98 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 98 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 99 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" |
99 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 100 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
100 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 101 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
101 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" | 102 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_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" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (url.host() == chrome::kChromeUIMetroFlowHost) | 355 if (url.host() == chrome::kChromeUIMetroFlowHost) |
355 return &NewWebUI<SetAsDefaultBrowserUI>; | 356 return &NewWebUI<SetAsDefaultBrowserUI>; |
356 #endif | 357 #endif |
357 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 358 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
358 if (url.host() == chrome::kChromeUICertificateViewerHost) | 359 if (url.host() == chrome::kChromeUICertificateViewerHost) |
359 return &NewWebUI<CertificateViewerUI>; | 360 return &NewWebUI<CertificateViewerUI>; |
360 #endif | 361 #endif |
361 #if defined(OS_CHROMEOS) | 362 #if defined(OS_CHROMEOS) |
362 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 363 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
363 return &NewWebUI<chromeos::BluetoothPairingUI>; | 364 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 365 if (url.host() == chrome::kChromeUIChargerReplacementHost) |
| 366 return &NewWebUI<chromeos::ChargerReplacementUI>; |
364 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 367 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
365 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 368 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
366 if (url.host() == chrome::kChromeUICryptohomeHost) | 369 if (url.host() == chrome::kChromeUICryptohomeHost) |
367 return &NewWebUI<chromeos::CryptohomeUI>; | 370 return &NewWebUI<chromeos::CryptohomeUI>; |
368 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 371 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
369 return &NewWebUI<chromeos::DriveInternalsUI>; | 372 return &NewWebUI<chromeos::DriveInternalsUI>; |
370 if (url.host() == chrome::kChromeUIDiagnosticsHost) | 373 if (url.host() == chrome::kChromeUIDiagnosticsHost) |
371 return &NewWebUI<chromeos::DiagnosticsUI>; | 374 return &NewWebUI<chromeos::DiagnosticsUI>; |
372 if (url.host() == chrome::kChromeUIFirstRunHost) | 375 if (url.host() == chrome::kChromeUIFirstRunHost) |
373 return &NewWebUI<chromeos::FirstRunUI>; | 376 return &NewWebUI<chromeos::FirstRunUI>; |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 if (page_url.host() == chrome::kChromeUIPluginsHost) | 632 if (page_url.host() == chrome::kChromeUIPluginsHost) |
630 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 633 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
631 | 634 |
632 // Android doesn't use the components pages. | 635 // Android doesn't use the components pages. |
633 if (page_url.host() == chrome::kChromeUIComponentsHost) | 636 if (page_url.host() == chrome::kChromeUIComponentsHost) |
634 return ComponentsUI::GetFaviconResourceBytes(scale_factor); | 637 return ComponentsUI::GetFaviconResourceBytes(scale_factor); |
635 #endif | 638 #endif |
636 | 639 |
637 return NULL; | 640 return NULL; |
638 } | 641 } |
OLD | NEW |