| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" | 102 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" |
| 103 #include "chrome/browser/ui/webui/devtools_ui.h" | 103 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 104 #include "chrome/browser/ui/webui/inspect_ui.h" | 104 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 #if defined(OS_CHROMEOS) | 107 #if defined(OS_CHROMEOS) |
| 108 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 109 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 110 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 111 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 112 #include "chrome/browser/ui/webui/chromeos/device_log_ui.h" |
| 112 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 113 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 113 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 114 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 114 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 115 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 115 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 116 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 116 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 117 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 118 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
| 118 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 119 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 119 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
| 120 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 121 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 121 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 122 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 #endif | 403 #endif |
| 403 #if defined(OS_CHROMEOS) | 404 #if defined(OS_CHROMEOS) |
| 404 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 405 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
| 405 return &NewWebUI<chromeos::BluetoothPairingUI>; | 406 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 406 if (url.host() == chrome::kChromeUICertificateManagerHost) | 407 if (url.host() == chrome::kChromeUICertificateManagerHost) |
| 407 return &NewWebUI<chromeos::CertificateManagerDialogUI>; | 408 return &NewWebUI<chromeos::CertificateManagerDialogUI>; |
| 408 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 409 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 409 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 410 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 410 if (url.host() == chrome::kChromeUICryptohomeHost) | 411 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 411 return &NewWebUI<chromeos::CryptohomeUI>; | 412 return &NewWebUI<chromeos::CryptohomeUI>; |
| 413 if (url.host() == chrome::kChromeUIDeviceLogHost) |
| 414 return &NewWebUI<chromeos::DeviceLogUI>; |
| 412 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 415 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 413 return &NewWebUI<chromeos::DriveInternalsUI>; | 416 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 414 if (url.host() == chrome::kChromeUIImageBurnerHost) | 417 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 415 return &NewWebUI<ImageBurnUI>; | 418 return &NewWebUI<ImageBurnUI>; |
| 416 #if !defined(USE_ATHENA) | 419 #if !defined(USE_ATHENA) |
| 417 if (url.host() == chrome::kChromeUIFirstRunHost) | 420 if (url.host() == chrome::kChromeUIFirstRunHost) |
| 418 return &NewWebUI<chromeos::FirstRunUI>; | 421 return &NewWebUI<chromeos::FirstRunUI>; |
| 419 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 422 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 420 return &NewWebUI<KeyboardOverlayUI>; | 423 return &NewWebUI<KeyboardOverlayUI>; |
| 421 #endif | 424 #endif |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 #endif | 723 #endif |
| 721 | 724 |
| 722 // Android doesn't use the plugins pages. | 725 // Android doesn't use the plugins pages. |
| 723 if (page_url.host() == chrome::kChromeUIPluginsHost) | 726 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 724 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 727 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 725 | 728 |
| 726 #endif | 729 #endif |
| 727 | 730 |
| 728 return NULL; | 731 return NULL; |
| 729 } | 732 } |
| OLD | NEW |