| 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/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/extension_web_ui.h" | 10 #include "chrome/browser/extensions/extension_web_ui.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "content/public/browser/web_ui.h" | 57 #include "content/public/browser/web_ui.h" |
| 58 #include "content/public/common/content_client.h" | 58 #include "content/public/common/content_client.h" |
| 59 #include "googleurl/src/gurl.h" | 59 #include "googleurl/src/gurl.h" |
| 60 #include "ui/web_dialogs/constrained_web_dialog_ui.h" | 60 #include "ui/web_dialogs/constrained_web_dialog_ui.h" |
| 61 #include "ui/web_dialogs/web_dialog_ui.h" | 61 #include "ui/web_dialogs/web_dialog_ui.h" |
| 62 | 62 |
| 63 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
| 64 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 64 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 65 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 65 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 66 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 66 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 67 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" |
| 67 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 68 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 68 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 69 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 69 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 70 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 70 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 71 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 71 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 72 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 72 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 73 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
| 73 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 74 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 74 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 75 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
| 75 #endif | 76 #endif |
| 76 | 77 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 if (url.host() == chrome::kChromeUICertificateViewerHost) | 269 if (url.host() == chrome::kChromeUICertificateViewerHost) |
| 269 return &NewWebUI<CertificateViewerUI>; | 270 return &NewWebUI<CertificateViewerUI>; |
| 270 #endif | 271 #endif |
| 271 #if defined(OS_CHROMEOS) | 272 #if defined(OS_CHROMEOS) |
| 272 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 273 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 273 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 274 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 274 if (url.host() == chrome::kChromeUICryptohomeHost) | 275 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 275 return &NewWebUI<chromeos::CryptohomeUI>; | 276 return &NewWebUI<chromeos::CryptohomeUI>; |
| 276 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 277 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 277 return &NewWebUI<chromeos::DriveInternalsUI>; | 278 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 279 if (url.host() == chrome::kChromeUIDiagnosticsHost) |
| 280 return &NewWebUI<chromeos::DiagnosticsUI>; |
| 278 if (url.host() == chrome::kChromeUIImageBurnerHost) | 281 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 279 return &NewWebUI<ImageBurnUI>; | 282 return &NewWebUI<ImageBurnUI>; |
| 280 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 283 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 281 return &NewWebUI<KeyboardOverlayUI>; | 284 return &NewWebUI<KeyboardOverlayUI>; |
| 282 if (url.host() == chrome::kChromeUIMobileSetupHost) | 285 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 283 return &NewWebUI<MobileSetupUI>; | 286 return &NewWebUI<MobileSetupUI>; |
| 284 if (url.host() == chrome::kChromeUIOobeHost) | 287 if (url.host() == chrome::kChromeUIOobeHost) |
| 285 return &NewWebUI<chromeos::OobeUI>; | 288 return &NewWebUI<chromeos::OobeUI>; |
| 286 if (url.host() == chrome::kChromeUIProxySettingsHost) | 289 if (url.host() == chrome::kChromeUIProxySettingsHost) |
| 287 return &NewWebUI<chromeos::ProxySettingsUI>; | 290 return &NewWebUI<chromeos::ProxySettingsUI>; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 527 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 525 return options2::OptionsUI::GetFaviconResourceBytes(); | 528 return options2::OptionsUI::GetFaviconResourceBytes(); |
| 526 | 529 |
| 527 // Android doesn't use the plugins pages. | 530 // Android doesn't use the plugins pages. |
| 528 if (page_url.host() == chrome::kChromeUIPluginsHost) | 531 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 529 return PluginsUI::GetFaviconResourceBytes(); | 532 return PluginsUI::GetFaviconResourceBytes(); |
| 530 #endif | 533 #endif |
| 531 | 534 |
| 532 return NULL; | 535 return NULL; |
| 533 } | 536 } |
| OLD | NEW |