| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "chrome/common/chrome_switches.h" | 51 #include "chrome/common/chrome_switches.h" |
| 52 #include "chrome/common/extensions/extension_constants.h" | 52 #include "chrome/common/extensions/extension_constants.h" |
| 53 #include "chrome/common/pref_names.h" | 53 #include "chrome/common/pref_names.h" |
| 54 #include "chrome/common/url_constants.h" | 54 #include "chrome/common/url_constants.h" |
| 55 #include "content/public/browser/web_contents.h" | 55 #include "content/public/browser/web_contents.h" |
| 56 #include "content/public/browser/web_ui.h" | 56 #include "content/public/browser/web_ui.h" |
| 57 #include "googleurl/src/gurl.h" | 57 #include "googleurl/src/gurl.h" |
| 58 | 58 |
| 59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
| 60 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 60 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 61 #include "chrome/browser/ui/webui/chromeos/idle_logout_dialog.h" |
| 61 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 62 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 62 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 63 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 63 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 64 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 64 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 65 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 65 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 66 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 66 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 67 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
| 67 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 68 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 68 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 69 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
| 69 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 70 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
| 70 #else | 71 #else |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 #endif | 241 #endif |
| 241 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 242 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
| 242 if (url.host() == chrome::kChromeUICertificateViewerHost) | 243 if (url.host() == chrome::kChromeUICertificateViewerHost) |
| 243 return &NewWebUI<CertificateViewerUI>; | 244 return &NewWebUI<CertificateViewerUI>; |
| 244 #endif | 245 #endif |
| 245 #if defined(OS_CHROMEOS) | 246 #if defined(OS_CHROMEOS) |
| 246 if (url.host() == chrome::kChromeUIActiveDownloadsHost) | 247 if (url.host() == chrome::kChromeUIActiveDownloadsHost) |
| 247 return &NewWebUI<ActiveDownloadsUI>; | 248 return &NewWebUI<ActiveDownloadsUI>; |
| 248 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 249 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 249 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 250 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 251 if (url.host() == chrome::kChromeUIIdleLogoutDialogHost) |
| 252 return &NewWebUI<IdleLogoutDialogUI>; |
| 250 if (url.host() == chrome::kChromeUIImageBurnerHost) | 253 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 251 return &NewWebUI<ImageBurnUI>; | 254 return &NewWebUI<ImageBurnUI>; |
| 252 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 255 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 253 return &NewWebUI<KeyboardOverlayUI>; | 256 return &NewWebUI<KeyboardOverlayUI>; |
| 254 if (url.host() == chrome::kChromeUIMobileSetupHost) | 257 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 255 return &NewWebUI<MobileSetupUI>; | 258 return &NewWebUI<MobileSetupUI>; |
| 256 if (url.host() == chrome::kChromeUIOobeHost) | 259 if (url.host() == chrome::kChromeUIOobeHost) |
| 257 return &NewWebUI<chromeos::OobeUI>; | 260 return &NewWebUI<chromeos::OobeUI>; |
| 258 if (url.host() == chrome::kChromeUIProxySettingsHost) | 261 if (url.host() == chrome::kChromeUIProxySettingsHost) |
| 259 return &NewWebUI<chromeos::ProxySettingsUI>; | 262 return &NewWebUI<chromeos::ProxySettingsUI>; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 496 |
| 494 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 497 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 495 return options2::OptionsUI::GetFaviconResourceBytes(); | 498 return options2::OptionsUI::GetFaviconResourceBytes(); |
| 496 #endif | 499 #endif |
| 497 | 500 |
| 498 if (page_url.host() == chrome::kChromeUIPluginsHost) | 501 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 499 return PluginsUI::GetFaviconResourceBytes(); | 502 return PluginsUI::GetFaviconResourceBytes(); |
| 500 | 503 |
| 501 return NULL; | 504 return NULL; |
| 502 } | 505 } |
| OLD | NEW |