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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
45 #include "content/browser/tab_contents/tab_contents.h" | 45 #include "content/browser/tab_contents/tab_contents.h" |
46 #include "content/browser/webui/web_ui.h" | 46 #include "content/browser/webui/web_ui.h" |
47 #include "googleurl/src/gurl.h" | 47 #include "googleurl/src/gurl.h" |
48 | 48 |
49 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
50 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 50 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
51 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" | 51 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" |
52 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 52 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
53 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 53 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
54 #include "chrome/browser/ui/webui/chromeos/login/login_ui.h" | |
55 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 54 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
56 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 55 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
57 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 56 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
58 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 57 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
59 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 58 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
60 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 59 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
61 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 60 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
62 #endif | 61 #endif |
63 | 62 |
64 #if defined(TOUCH_UI) | 63 #if defined(TOUCH_UI) |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 return &NewWebUI<ConstrainedHtmlUI>; | 221 return &NewWebUI<ConstrainedHtmlUI>; |
223 } | 222 } |
224 if (url.host() == chrome::kChromeUIActiveDownloadsHost) | 223 if (url.host() == chrome::kChromeUIActiveDownloadsHost) |
225 return &NewWebUI<ActiveDownloadsUI>; | 224 return &NewWebUI<ActiveDownloadsUI>; |
226 if (url.host() == chrome::kChromeUIImageBurnerHost) | 225 if (url.host() == chrome::kChromeUIImageBurnerHost) |
227 return &NewWebUI<ImageBurnUI>; | 226 return &NewWebUI<ImageBurnUI>; |
228 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 227 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
229 return &NewWebUI<KeyboardOverlayUI>; | 228 return &NewWebUI<KeyboardOverlayUI>; |
230 if (url.host() == chrome::kChromeUIMobileSetupHost) | 229 if (url.host() == chrome::kChromeUIMobileSetupHost) |
231 return &NewWebUI<MobileSetupUI>; | 230 return &NewWebUI<MobileSetupUI>; |
232 if (url.host() == chrome::kChromeUILoginHost) | |
233 return &NewWebUI<chromeos::LoginUI>; | |
234 if (url.host() == chrome::kChromeUIOobeHost) | 231 if (url.host() == chrome::kChromeUIOobeHost) |
235 return &NewWebUI<chromeos::OobeUI>; | 232 return &NewWebUI<chromeos::OobeUI>; |
236 if (url.host() == chrome::kChromeUIProxySettingsHost) | 233 if (url.host() == chrome::kChromeUIProxySettingsHost) |
237 return &NewWebUI<chromeos::ProxySettingsUI>; | 234 return &NewWebUI<chromeos::ProxySettingsUI>; |
238 if (url.host() == chrome::kChromeUIRegisterPageHost) | 235 if (url.host() == chrome::kChromeUIRegisterPageHost) |
239 return &NewWebUI<RegisterPageUI>; | 236 return &NewWebUI<RegisterPageUI>; |
240 if (url.host() == chrome::kChromeUISimUnlockHost) | 237 if (url.host() == chrome::kChromeUISimUnlockHost) |
241 return &NewWebUI<chromeos::SimUnlockUI>; | 238 return &NewWebUI<chromeos::SimUnlockUI>; |
242 if (url.host() == chrome::kChromeUISystemInfoHost) | 239 if (url.host() == chrome::kChromeUISystemInfoHost) |
243 return &NewWebUI<SystemInfoUI>; | 240 return &NewWebUI<SystemInfoUI>; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 return FlashUI::GetFaviconResourceBytes(); | 395 return FlashUI::GetFaviconResourceBytes(); |
399 | 396 |
400 if (page_url.host() == chrome::kChromeUISettingsHost) | 397 if (page_url.host() == chrome::kChromeUISettingsHost) |
401 return OptionsUI::GetFaviconResourceBytes(); | 398 return OptionsUI::GetFaviconResourceBytes(); |
402 | 399 |
403 if (page_url.host() == chrome::kChromeUIPluginsHost) | 400 if (page_url.host() == chrome::kChromeUIPluginsHost) |
404 return PluginsUI::GetFaviconResourceBytes(); | 401 return PluginsUI::GetFaviconResourceBytes(); |
405 | 402 |
406 return NULL; | 403 return NULL; |
407 } | 404 } |
OLD | NEW |