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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" | 104 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" |
105 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 105 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
106 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 106 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
107 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 107 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
108 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
109 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
110 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
111 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
112 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 112 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
113 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 113 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 114 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
114 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 115 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
115 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 116 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
116 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
117 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 118 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
118 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 119 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
119 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
120 #endif | 121 #endif |
121 | 122 |
122 #if defined(USE_AURA) | 123 #if defined(USE_AURA) |
123 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 124 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 393 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
393 return &NewWebUI<chromeos::DriveInternalsUI>; | 394 return &NewWebUI<chromeos::DriveInternalsUI>; |
394 if (url.host() == chrome::kChromeUIFirstRunHost) | 395 if (url.host() == chrome::kChromeUIFirstRunHost) |
395 return &NewWebUI<chromeos::FirstRunUI>; | 396 return &NewWebUI<chromeos::FirstRunUI>; |
396 if (url.host() == chrome::kChromeUIImageBurnerHost) | 397 if (url.host() == chrome::kChromeUIImageBurnerHost) |
397 return &NewWebUI<ImageBurnUI>; | 398 return &NewWebUI<ImageBurnUI>; |
398 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 399 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
399 return &NewWebUI<KeyboardOverlayUI>; | 400 return &NewWebUI<KeyboardOverlayUI>; |
400 if (url.host() == chrome::kChromeUIMobileSetupHost) | 401 if (url.host() == chrome::kChromeUIMobileSetupHost) |
401 return &NewWebUI<MobileSetupUI>; | 402 return &NewWebUI<MobileSetupUI>; |
| 403 if (url.host() == chrome::kChromeUINfcDebugHost) |
| 404 return &NewWebUI<chromeos::NfcDebugUI>; |
402 if (url.host() == chrome::kChromeUIOobeHost) | 405 if (url.host() == chrome::kChromeUIOobeHost) |
403 return &NewWebUI<chromeos::OobeUI>; | 406 return &NewWebUI<chromeos::OobeUI>; |
404 if (url.host() == chrome::kChromeUIProxySettingsHost) | 407 if (url.host() == chrome::kChromeUIProxySettingsHost) |
405 return &NewWebUI<chromeos::ProxySettingsUI>; | 408 return &NewWebUI<chromeos::ProxySettingsUI>; |
406 if (url.host() == chrome::kChromeUISalsaHost) | 409 if (url.host() == chrome::kChromeUISalsaHost) |
407 return &NewWebUI<SalsaUI>; | 410 return &NewWebUI<SalsaUI>; |
408 if (url.host() == chrome::kChromeUISimUnlockHost) | 411 if (url.host() == chrome::kChromeUISimUnlockHost) |
409 return &NewWebUI<chromeos::SimUnlockUI>; | 412 return &NewWebUI<chromeos::SimUnlockUI>; |
410 if (url.host() == chrome::kChromeUISlowHost) | 413 if (url.host() == chrome::kChromeUISlowHost) |
411 return &NewWebUI<chromeos::SlowUI>; | 414 return &NewWebUI<chromeos::SlowUI>; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 #endif | 665 #endif |
663 | 666 |
664 // Android doesn't use the plugins pages. | 667 // Android doesn't use the plugins pages. |
665 if (page_url.host() == chrome::kChromeUIPluginsHost) | 668 if (page_url.host() == chrome::kChromeUIPluginsHost) |
666 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 669 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
667 | 670 |
668 #endif | 671 #endif |
669 | 672 |
670 return NULL; | 673 return NULL; |
671 } | 674 } |
OLD | NEW |