| 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_proxy.h" | 10 #include "base/message_loop_proxy.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #include "chrome/browser/ui/webui/policy_ui.h" | 72 #include "chrome/browser/ui/webui/policy_ui.h" |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 #if defined(OS_ANDROID) | 75 #if defined(OS_ANDROID) |
| 76 #include "chrome/browser/ui/webui/welcome_ui_android.h" | 76 #include "chrome/browser/ui/webui/welcome_ui_android.h" |
| 77 #else | 77 #else |
| 78 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" | 78 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" |
| 79 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 79 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 83 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 84 #endif |
| 85 |
| 82 #if defined(OS_CHROMEOS) | 86 #if defined(OS_CHROMEOS) |
| 83 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 87 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 84 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 88 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 85 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 89 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 86 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" | 90 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" |
| 87 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 91 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 88 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 92 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 89 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 93 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 90 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 94 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 91 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 95 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 if (url.host() == chrome::kChromeUIInstantHost) | 212 if (url.host() == chrome::kChromeUIInstantHost) |
| 209 return &NewWebUI<InstantUI>; | 213 return &NewWebUI<InstantUI>; |
| 210 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost) | 214 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost) |
| 211 return &NewWebUI<LocalOmniboxPopupUI>; | 215 return &NewWebUI<LocalOmniboxPopupUI>; |
| 212 if (url.host() == chrome::kChromeUIMediaInternalsHost) | 216 if (url.host() == chrome::kChromeUIMediaInternalsHost) |
| 213 return &NewWebUI<MediaInternalsUI>; | 217 return &NewWebUI<MediaInternalsUI>; |
| 214 #if !defined(DISABLE_NACL) | 218 #if !defined(DISABLE_NACL) |
| 215 if (url.host() == chrome::kChromeUINaClHost) | 219 if (url.host() == chrome::kChromeUINaClHost) |
| 216 return &NewWebUI<NaClUI>; | 220 return &NewWebUI<NaClUI>; |
| 217 #endif | 221 #endif |
| 222 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 223 if (url.host() == chrome::kChromeUINetExportHost) |
| 224 return &NewWebUI<NetExportUI>; |
| 225 #endif |
| 218 if (url.host() == chrome::kChromeUINetInternalsHost) | 226 if (url.host() == chrome::kChromeUINetInternalsHost) |
| 219 return &NewWebUI<NetInternalsUI>; | 227 return &NewWebUI<NetInternalsUI>; |
| 220 if (url.host() == chrome::kChromeUIOmniboxHost) | 228 if (url.host() == chrome::kChromeUIOmniboxHost) |
| 221 return &NewWebUI<OmniboxUI>; | 229 return &NewWebUI<OmniboxUI>; |
| 222 if (url.host() == chrome::kChromeUIPredictorsHost) | 230 if (url.host() == chrome::kChromeUIPredictorsHost) |
| 223 return &NewWebUI<PredictorsUI>; | 231 return &NewWebUI<PredictorsUI>; |
| 224 if (url.host() == chrome::kChromeUIProfilerHost) | 232 if (url.host() == chrome::kChromeUIProfilerHost) |
| 225 return &NewWebUI<ProfilerUI>; | 233 return &NewWebUI<ProfilerUI>; |
| 226 if (url.host() == chrome::kChromeUIQuotaInternalsHost) | 234 if (url.host() == chrome::kChromeUIQuotaInternalsHost) |
| 227 return &NewWebUI<QuotaInternalsUI>; | 235 return &NewWebUI<QuotaInternalsUI>; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 602 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 595 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); | 603 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); |
| 596 | 604 |
| 597 // Android doesn't use the plugins pages. | 605 // Android doesn't use the plugins pages. |
| 598 if (page_url.host() == chrome::kChromeUIPluginsHost) | 606 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 599 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 607 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 600 #endif | 608 #endif |
| 601 | 609 |
| 602 return NULL; | 610 return NULL; |
| 603 } | 611 } |
| OLD | NEW |