| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" | 86 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" |
| 87 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 87 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
| 88 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 88 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 #if defined(OS_ANDROID) || defined(OS_IOS) | 91 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 92 #include "chrome/browser/ui/webui/net_export_ui.h" | 92 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 #if defined(OS_CHROMEOS) | 95 #if defined(OS_CHROMEOS) |
| 96 #include "chrome/browser/ui/webui/chromeos/app_launch_ui.h" | |
| 97 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 96 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 98 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 97 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 99 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 98 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 100 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" | 99 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" |
| 101 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 100 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 102 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 101 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 103 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 102 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 104 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 103 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 105 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 104 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 106 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 105 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 if (url.host() == chrome::kChromeUIConflictsHost) | 344 if (url.host() == chrome::kChromeUIConflictsHost) |
| 346 return &NewWebUI<ConflictsUI>; | 345 return &NewWebUI<ConflictsUI>; |
| 347 if (url.host() == chrome::kChromeUIMetroFlowHost) | 346 if (url.host() == chrome::kChromeUIMetroFlowHost) |
| 348 return &NewWebUI<SetAsDefaultBrowserUI>; | 347 return &NewWebUI<SetAsDefaultBrowserUI>; |
| 349 #endif | 348 #endif |
| 350 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 349 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
| 351 if (url.host() == chrome::kChromeUICertificateViewerHost) | 350 if (url.host() == chrome::kChromeUICertificateViewerHost) |
| 352 return &NewWebUI<CertificateViewerUI>; | 351 return &NewWebUI<CertificateViewerUI>; |
| 353 #endif | 352 #endif |
| 354 #if defined(OS_CHROMEOS) | 353 #if defined(OS_CHROMEOS) |
| 355 if (url.host() == chrome::kChromeUIAppLaunchHost) | |
| 356 return &NewWebUI<chromeos::AppLaunchUI>; | |
| 357 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 354 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
| 358 return &NewWebUI<chromeos::BluetoothPairingUI>; | 355 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 359 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 356 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 360 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 357 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 361 if (url.host() == chrome::kChromeUICryptohomeHost) | 358 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 362 return &NewWebUI<chromeos::CryptohomeUI>; | 359 return &NewWebUI<chromeos::CryptohomeUI>; |
| 363 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 360 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 364 return &NewWebUI<chromeos::DriveInternalsUI>; | 361 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 365 if (url.host() == chrome::kChromeUIDiagnosticsHost) | 362 if (url.host() == chrome::kChromeUIDiagnosticsHost) |
| 366 return &NewWebUI<chromeos::DiagnosticsUI>; | 363 return &NewWebUI<chromeos::DiagnosticsUI>; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 615 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 619 #endif | 616 #endif |
| 620 | 617 |
| 621 // Android doesn't use the plugins pages. | 618 // Android doesn't use the plugins pages. |
| 622 if (page_url.host() == chrome::kChromeUIPluginsHost) | 619 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 623 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 620 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 624 #endif | 621 #endif |
| 625 | 622 |
| 626 return NULL; | 623 return NULL; |
| 627 } | 624 } |
| OLD | NEW |