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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 #endif | 123 #endif |
124 | 124 |
125 #if defined(OS_CHROMEOS) | 125 #if defined(OS_CHROMEOS) |
126 #include "base/sys_info.h" | 126 #include "base/sys_info.h" |
127 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 127 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
128 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 128 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
129 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 129 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
130 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 130 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
131 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 131 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
132 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 132 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
| 133 #include "chrome/browser/ui/webui/chromeos/hats/hats_ui.h" |
133 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 134 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
134 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 135 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
135 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 136 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
136 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 137 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
137 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 138 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
138 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 139 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
139 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 140 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
140 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 141 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
141 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 142 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
142 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 143 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 if (url.host() == chrome::kChromeUICertificateManagerHost) | 452 if (url.host() == chrome::kChromeUICertificateManagerHost) |
452 return &NewWebUI<chromeos::CertificateManagerDialogUI>; | 453 return &NewWebUI<chromeos::CertificateManagerDialogUI>; |
453 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 454 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
454 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 455 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
455 if (url.host() == chrome::kChromeUICryptohomeHost) | 456 if (url.host() == chrome::kChromeUICryptohomeHost) |
456 return &NewWebUI<chromeos::CryptohomeUI>; | 457 return &NewWebUI<chromeos::CryptohomeUI>; |
457 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 458 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
458 return &NewWebUI<chromeos::DriveInternalsUI>; | 459 return &NewWebUI<chromeos::DriveInternalsUI>; |
459 if (url.host() == chrome::kChromeUIFirstRunHost) | 460 if (url.host() == chrome::kChromeUIFirstRunHost) |
460 return &NewWebUI<chromeos::FirstRunUI>; | 461 return &NewWebUI<chromeos::FirstRunUI>; |
| 462 if (url.host() == chrome::kChromeUIHatsHost) |
| 463 return &NewWebUI<chromeos::HatsUI>; |
461 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 464 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
462 return &NewWebUI<KeyboardOverlayUI>; | 465 return &NewWebUI<KeyboardOverlayUI>; |
463 if (url.host() == chrome::kChromeUIMobileSetupHost) | 466 if (url.host() == chrome::kChromeUIMobileSetupHost) |
464 return &NewWebUI<MobileSetupUI>; | 467 return &NewWebUI<MobileSetupUI>; |
465 if (url.host() == chrome::kChromeUINetworkHost) | 468 if (url.host() == chrome::kChromeUINetworkHost) |
466 return &NewWebUI<chromeos::NetworkUI>; | 469 return &NewWebUI<chromeos::NetworkUI>; |
467 if (url.host() == chrome::kChromeUINfcDebugHost) | 470 if (url.host() == chrome::kChromeUINfcDebugHost) |
468 return &NewWebUI<chromeos::NfcDebugUI>; | 471 return &NewWebUI<chromeos::NfcDebugUI>; |
469 if (url.host() == chrome::kChromeUIOobeHost) | 472 if (url.host() == chrome::kChromeUIOobeHost) |
470 return &NewWebUI<chromeos::OobeUI>; | 473 return &NewWebUI<chromeos::OobeUI>; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 #endif | 802 #endif |
800 | 803 |
801 // Android doesn't use the plugins pages. | 804 // Android doesn't use the plugins pages. |
802 if (page_url.host() == chrome::kChromeUIPluginsHost) | 805 if (page_url.host() == chrome::kChromeUIPluginsHost) |
803 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 806 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
804 | 807 |
805 #endif | 808 #endif |
806 | 809 |
807 return NULL; | 810 return NULL; |
808 } | 811 } |
OLD | NEW |