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 24 matching lines...) Expand all Loading... |
35 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
36 #include "content/browser/tab_contents/tab_contents.h" | 36 #include "content/browser/tab_contents/tab_contents.h" |
37 #include "content/browser/webui/web_ui.h" | 37 #include "content/browser/webui/web_ui.h" |
38 #include "googleurl/src/gurl.h" | 38 #include "googleurl/src/gurl.h" |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 41 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
42 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" | 42 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" |
43 #include "chrome/browser/ui/webui/chromeos/imageburner_ui.h" | 43 #include "chrome/browser/ui/webui/chromeos/imageburner_ui.h" |
44 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 44 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 45 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
45 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 46 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
46 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 47 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
47 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 48 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
48 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 49 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
49 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 50 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
50 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 51 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
51 #endif | 52 #endif |
52 | 53 |
53 #if defined(TOUCH_UI) | 54 #if defined(TOUCH_UI) |
54 #include "chrome/browser/ui/webui/keyboard_ui.h" | 55 #include "chrome/browser/ui/webui/keyboard_ui.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return &NewWebUI<ConstrainedHtmlUI>; | 180 return &NewWebUI<ConstrainedHtmlUI>; |
180 } | 181 } |
181 if (url.host() == chrome::kChromeUIActiveDownloadsHost) | 182 if (url.host() == chrome::kChromeUIActiveDownloadsHost) |
182 return &NewWebUI<ActiveDownloadsUI>; | 183 return &NewWebUI<ActiveDownloadsUI>; |
183 if (url.host() == chrome::kChromeUIImageBurnerHost) | 184 if (url.host() == chrome::kChromeUIImageBurnerHost) |
184 return &NewWebUI<ImageBurnUI>; | 185 return &NewWebUI<ImageBurnUI>; |
185 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 186 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
186 return &NewWebUI<KeyboardOverlayUI>; | 187 return &NewWebUI<KeyboardOverlayUI>; |
187 if (url.host() == chrome::kChromeUIMobileSetupHost) | 188 if (url.host() == chrome::kChromeUIMobileSetupHost) |
188 return &NewWebUI<MobileSetupUI>; | 189 return &NewWebUI<MobileSetupUI>; |
| 190 if (url.host() == chrome::kChromeUIOobeHost) |
| 191 return &NewWebUI<chromeos::OobeUI>; |
189 if (url.host() == chrome::kChromeUIProxySettingsHost) | 192 if (url.host() == chrome::kChromeUIProxySettingsHost) |
190 return &NewWebUI<chromeos::ProxySettingsUI>; | 193 return &NewWebUI<chromeos::ProxySettingsUI>; |
191 if (url.host() == chrome::kChromeUIRegisterPageHost) | 194 if (url.host() == chrome::kChromeUIRegisterPageHost) |
192 return &NewWebUI<RegisterPageUI>; | 195 return &NewWebUI<RegisterPageUI>; |
193 if (url.host() == chrome::kChromeUISettingsHost) | 196 if (url.host() == chrome::kChromeUISettingsHost) |
194 return &NewWebUI<OptionsUI>; | 197 return &NewWebUI<OptionsUI>; |
195 if (url.host() == chrome::kChromeUISimUnlockHost) | 198 if (url.host() == chrome::kChromeUISimUnlockHost) |
196 return &NewWebUI<chromeos::SimUnlockUI>; | 199 return &NewWebUI<chromeos::SimUnlockUI>; |
197 if (url.host() == chrome::kChromeUISystemInfoHost) | 200 if (url.host() == chrome::kChromeUISystemInfoHost) |
198 return &NewWebUI<SystemInfoUI>; | 201 return &NewWebUI<SystemInfoUI>; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 return FlashUI::GetFaviconResourceBytes(); | 357 return FlashUI::GetFaviconResourceBytes(); |
355 | 358 |
356 if (page_url.host() == chrome::kChromeUISettingsHost) | 359 if (page_url.host() == chrome::kChromeUISettingsHost) |
357 return OptionsUI::GetFaviconResourceBytes(); | 360 return OptionsUI::GetFaviconResourceBytes(); |
358 | 361 |
359 if (page_url.host() == chrome::kChromeUIPluginsHost) | 362 if (page_url.host() == chrome::kChromeUIPluginsHost) |
360 return PluginsUI::GetFaviconResourceBytes(); | 363 return PluginsUI::GetFaviconResourceBytes(); |
361 | 364 |
362 return NULL; | 365 return NULL; |
363 } | 366 } |
OLD | NEW |