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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 97 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
98 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" | 98 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" |
99 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 99 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
100 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 100 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
101 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 101 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
102 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 102 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
103 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 103 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
104 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 104 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
105 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 105 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
106 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 106 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 107 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
107 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
108 #endif | 109 #endif |
109 | 110 |
110 #if defined(USE_AURA) | 111 #if defined(USE_AURA) |
111 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 112 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
112 #include "ui/keyboard/keyboard_constants.h" | 113 #include "ui/keyboard/keyboard_constants.h" |
113 #include "ui/keyboard/keyboard_ui_controller.h" | 114 #include "ui/keyboard/keyboard_ui_controller.h" |
114 #endif | 115 #endif |
115 | 116 |
116 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 117 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (url.host() == chrome::kChromeUIMobileSetupHost) | 355 if (url.host() == chrome::kChromeUIMobileSetupHost) |
355 return &NewWebUI<MobileSetupUI>; | 356 return &NewWebUI<MobileSetupUI>; |
356 if (url.host() == chrome::kChromeUIOobeHost) | 357 if (url.host() == chrome::kChromeUIOobeHost) |
357 return &NewWebUI<chromeos::OobeUI>; | 358 return &NewWebUI<chromeos::OobeUI>; |
358 if (url.host() == chrome::kChromeUIProxySettingsHost) | 359 if (url.host() == chrome::kChromeUIProxySettingsHost) |
359 return &NewWebUI<chromeos::ProxySettingsUI>; | 360 return &NewWebUI<chromeos::ProxySettingsUI>; |
360 if (url.host() == chrome::kChromeUISalsaHost) | 361 if (url.host() == chrome::kChromeUISalsaHost) |
361 return &NewWebUI<SalsaUI>; | 362 return &NewWebUI<SalsaUI>; |
362 if (url.host() == chrome::kChromeUISimUnlockHost) | 363 if (url.host() == chrome::kChromeUISimUnlockHost) |
363 return &NewWebUI<chromeos::SimUnlockUI>; | 364 return &NewWebUI<chromeos::SimUnlockUI>; |
| 365 if (url.host() == chrome::kChromeUISlowHost) |
| 366 return &NewWebUI<chromeos::SlowUI>; |
364 if (url.host() == chrome::kChromeUISystemInfoHost) | 367 if (url.host() == chrome::kChromeUISystemInfoHost) |
365 return &NewWebUI<chromeos::SystemInfoUI>; | 368 return &NewWebUI<chromeos::SystemInfoUI>; |
366 #endif // defined(OS_CHROMEOS) | 369 #endif // defined(OS_CHROMEOS) |
367 | 370 |
368 /**************************************************************************** | 371 /**************************************************************************** |
369 * Other #defines and special logics. | 372 * Other #defines and special logics. |
370 ***************************************************************************/ | 373 ***************************************************************************/ |
371 #if defined(ENABLE_CONFIGURATION_POLICY) | 374 #if defined(ENABLE_CONFIGURATION_POLICY) |
372 if (url.host() == chrome::kChromeUIPolicyHost) | 375 if (url.host() == chrome::kChromeUIPolicyHost) |
373 return &NewWebUI<PolicyUI>; | 376 return &NewWebUI<PolicyUI>; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 602 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
600 #endif | 603 #endif |
601 | 604 |
602 // Android doesn't use the plugins pages. | 605 // Android doesn't use the plugins pages. |
603 if (page_url.host() == chrome::kChromeUIPluginsHost) | 606 if (page_url.host() == chrome::kChromeUIPluginsHost) |
604 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 607 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
605 #endif | 608 #endif |
606 | 609 |
607 return NULL; | 610 return NULL; |
608 } | 611 } |
OLD | NEW |