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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 116 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
117 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
118 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 118 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
119 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 119 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
120 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
121 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 121 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
122 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 122 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
123 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 123 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
124 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 124 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
125 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 125 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
| 126 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
126 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 127 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
127 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 128 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
128 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 129 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
129 #endif | 130 #endif |
130 | 131 |
131 #if defined(USE_AURA) | 132 #if defined(USE_AURA) |
132 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 133 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
133 #endif | 134 #endif |
134 | 135 |
135 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 136 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 if (url.host() == chrome::kChromeUIMobileSetupHost) | 424 if (url.host() == chrome::kChromeUIMobileSetupHost) |
424 return &NewWebUI<MobileSetupUI>; | 425 return &NewWebUI<MobileSetupUI>; |
425 if (url.host() == chrome::kChromeUINfcDebugHost) | 426 if (url.host() == chrome::kChromeUINfcDebugHost) |
426 return &NewWebUI<chromeos::NfcDebugUI>; | 427 return &NewWebUI<chromeos::NfcDebugUI>; |
427 if (url.host() == chrome::kChromeUIOobeHost) | 428 if (url.host() == chrome::kChromeUIOobeHost) |
428 return &NewWebUI<chromeos::OobeUI>; | 429 return &NewWebUI<chromeos::OobeUI>; |
429 if (url.host() == chrome::kChromeUIProxySettingsHost) | 430 if (url.host() == chrome::kChromeUIProxySettingsHost) |
430 return &NewWebUI<chromeos::ProxySettingsUI>; | 431 return &NewWebUI<chromeos::ProxySettingsUI>; |
431 if (url.host() == chrome::kChromeUISalsaHost) | 432 if (url.host() == chrome::kChromeUISalsaHost) |
432 return &NewWebUI<SalsaUI>; | 433 return &NewWebUI<SalsaUI>; |
| 434 if (url.host() == chrome::kChromeUISetTimeHost) |
| 435 return &NewWebUI<chromeos::SetTimeUI>; |
433 if (url.host() == chrome::kChromeUISimUnlockHost) | 436 if (url.host() == chrome::kChromeUISimUnlockHost) |
434 return &NewWebUI<chromeos::SimUnlockUI>; | 437 return &NewWebUI<chromeos::SimUnlockUI>; |
435 if (url.host() == chrome::kChromeUISlowHost) | 438 if (url.host() == chrome::kChromeUISlowHost) |
436 return &NewWebUI<chromeos::SlowUI>; | 439 return &NewWebUI<chromeos::SlowUI>; |
437 if (url.host() == chrome::kChromeUISlowTraceHost) | 440 if (url.host() == chrome::kChromeUISlowTraceHost) |
438 return &NewWebUI<chromeos::SlowTraceController>; | 441 return &NewWebUI<chromeos::SlowTraceController>; |
439 if (url.host() == chrome::kChromeUINetworkHost) | 442 if (url.host() == chrome::kChromeUINetworkHost) |
440 return &NewWebUI<chromeos::NetworkUI>; | 443 return &NewWebUI<chromeos::NetworkUI>; |
441 if (url.host() == chrome::kChromeUIPowerHost) | 444 if (url.host() == chrome::kChromeUIPowerHost) |
442 return &NewWebUI<chromeos::PowerUI>; | 445 return &NewWebUI<chromeos::PowerUI>; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 #endif | 684 #endif |
682 | 685 |
683 // Android doesn't use the plugins pages. | 686 // Android doesn't use the plugins pages. |
684 if (page_url.host() == chrome::kChromeUIPluginsHost) | 687 if (page_url.host() == chrome::kChromeUIPluginsHost) |
685 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 688 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
686 | 689 |
687 #endif | 690 #endif |
688 | 691 |
689 return NULL; | 692 return NULL; |
690 } | 693 } |
OLD | NEW |