| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 55 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 56 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 56 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 57 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 57 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
| 58 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 58 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 59 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 59 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
| 60 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 60 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
| 61 #else | 61 #else |
| 62 #include "chrome/browser/ui/webui/sync_promo_ui.h" | 62 #include "chrome/browser/ui/webui/sync_promo_ui.h" |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 #if defined(TOUCH_UI) | 65 #if defined(USE_VIRTUAL_KEYBOARD) |
| 66 #include "chrome/browser/ui/webui/keyboard_ui.h" | 66 #include "chrome/browser/ui/webui/keyboard_ui.h" |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 70 #include "chrome/browser/ui/webui/conflicts_ui.h" | 70 #include "chrome/browser/ui/webui/conflicts_ui.h" |
| 71 #endif | 71 #endif |
| 72 | 72 |
| 73 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 73 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 74 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" | 74 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" |
| 75 #endif | 75 #endif |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 if (url.host() == chrome::kChromeUITextfieldsHost) | 170 if (url.host() == chrome::kChromeUITextfieldsHost) |
| 171 return &NewWebUI<TextfieldsUI>; | 171 return &NewWebUI<TextfieldsUI>; |
| 172 if (url.host() == chrome::kChromeUIHistoryHost) | 172 if (url.host() == chrome::kChromeUIHistoryHost) |
| 173 return &NewWebUI<HistoryUI>; | 173 return &NewWebUI<HistoryUI>; |
| 174 if (url.host() == chrome::kChromeUIHistory2Host) | 174 if (url.host() == chrome::kChromeUIHistory2Host) |
| 175 return &NewWebUI<HistoryUI2>; | 175 return &NewWebUI<HistoryUI2>; |
| 176 if (url.host() == chrome::kChromeUIFlagsHost) | 176 if (url.host() == chrome::kChromeUIFlagsHost) |
| 177 return &NewWebUI<FlagsUI>; | 177 return &NewWebUI<FlagsUI>; |
| 178 if (url.host() == chrome::kChromeUIFlashHost) | 178 if (url.host() == chrome::kChromeUIFlashHost) |
| 179 return &NewWebUI<FlashUI>; | 179 return &NewWebUI<FlashUI>; |
| 180 #if defined(TOUCH_UI) | 180 #if defined(USE_VIRTUAL_KEYBOARD) |
| 181 if (url.host() == chrome::kChromeUIKeyboardHost) | 181 if (url.host() == chrome::kChromeUIKeyboardHost) |
| 182 return &NewWebUI<KeyboardUI>; | 182 return &NewWebUI<KeyboardUI>; |
| 183 #endif | 183 #endif |
| 184 if (url.host() == chrome::kChromeUIGpuInternalsHost) | 184 if (url.host() == chrome::kChromeUIGpuInternalsHost) |
| 185 return &NewWebUI<GpuInternalsUI>; | 185 return &NewWebUI<GpuInternalsUI>; |
| 186 if (url.host() == chrome::kChromeUIMediaInternalsHost) | 186 if (url.host() == chrome::kChromeUIMediaInternalsHost) |
| 187 return &NewWebUI<MediaInternalsUI>; | 187 return &NewWebUI<MediaInternalsUI>; |
| 188 if (url.host() == chrome::kChromeUINetInternalsHost) | 188 if (url.host() == chrome::kChromeUINetInternalsHost) |
| 189 return &NewWebUI<NetInternalsUI>; | 189 return &NewWebUI<NetInternalsUI>; |
| 190 if (url.host() == chrome::kChromeUIPluginsHost) | 190 if (url.host() == chrome::kChromeUIPluginsHost) |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return FlashUI::GetFaviconResourceBytes(); | 396 return FlashUI::GetFaviconResourceBytes(); |
| 397 | 397 |
| 398 if (page_url.host() == chrome::kChromeUISettingsHost) | 398 if (page_url.host() == chrome::kChromeUISettingsHost) |
| 399 return OptionsUI::GetFaviconResourceBytes(); | 399 return OptionsUI::GetFaviconResourceBytes(); |
| 400 | 400 |
| 401 if (page_url.host() == chrome::kChromeUIPluginsHost) | 401 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 402 return PluginsUI::GetFaviconResourceBytes(); | 402 return PluginsUI::GetFaviconResourceBytes(); |
| 403 | 403 |
| 404 return NULL; | 404 return NULL; |
| 405 } | 405 } |
| OLD | NEW |