| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #if defined(OS_ANDROID) || defined(OS_IOS) | 98 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 99 #include "chrome/browser/ui/webui/net_export_ui.h" | 99 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 100 #else | 100 #else |
| 101 #include "chrome/browser/ui/webui/devtools_ui.h" | 101 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 102 #include "chrome/browser/ui/webui/inspect_ui.h" | 102 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 103 #endif | 103 #endif |
| 104 | 104 |
| 105 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
| 106 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 106 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 107 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 107 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 108 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" | |
| 109 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 110 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 111 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 112 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 113 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 112 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 114 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 113 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 115 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 114 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 116 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 115 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
| 117 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 116 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 118 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 #if defined(OS_CHROMEOS) | 409 #if defined(OS_CHROMEOS) |
| 411 if (url.host() == chrome::kChromeUICertificateViewerDialogHost) | 410 if (url.host() == chrome::kChromeUICertificateViewerDialogHost) |
| 412 return &NewWebUI<CertificateViewerModalDialogUI>; | 411 return &NewWebUI<CertificateViewerModalDialogUI>; |
| 413 #endif | 412 #endif |
| 414 #endif | 413 #endif |
| 415 #if defined(OS_CHROMEOS) | 414 #if defined(OS_CHROMEOS) |
| 416 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 415 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
| 417 return &NewWebUI<chromeos::BluetoothPairingUI>; | 416 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 418 if (url.host() == chrome::kChromeUICertificateManagerHost) | 417 if (url.host() == chrome::kChromeUICertificateManagerHost) |
| 419 return &NewWebUI<chromeos::CertificateManagerDialogUI>; | 418 return &NewWebUI<chromeos::CertificateManagerDialogUI>; |
| 420 if (url.host() == chrome::kChromeUIChargerReplacementHost) | |
| 421 return &NewWebUI<chromeos::ChargerReplacementUI>; | |
| 422 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 419 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 423 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 420 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 424 if (url.host() == chrome::kChromeUICryptohomeHost) | 421 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 425 return &NewWebUI<chromeos::CryptohomeUI>; | 422 return &NewWebUI<chromeos::CryptohomeUI>; |
| 426 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 423 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 427 return &NewWebUI<chromeos::DriveInternalsUI>; | 424 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 428 if (url.host() == chrome::kChromeUIImageBurnerHost) | 425 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 429 return &NewWebUI<ImageBurnUI>; | 426 return &NewWebUI<ImageBurnUI>; |
| 430 #if !defined(USE_ATHENA) | 427 #if !defined(USE_ATHENA) |
| 431 if (url.host() == chrome::kChromeUIFirstRunHost) | 428 if (url.host() == chrome::kChromeUIFirstRunHost) |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 #endif | 720 #endif |
| 724 | 721 |
| 725 // Android doesn't use the plugins pages. | 722 // Android doesn't use the plugins pages. |
| 726 if (page_url.host() == chrome::kChromeUIPluginsHost) | 723 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 727 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 724 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 728 | 725 |
| 729 #endif | 726 #endif |
| 730 | 727 |
| 731 return NULL; | 728 return NULL; |
| 732 } | 729 } |
| OLD | NEW |