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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 return &NewWebUI<TracingUI>; | 210 return &NewWebUI<TracingUI>; |
211 if (url.host() == chrome::kChromeUIQuotaInternalsHost) | 211 if (url.host() == chrome::kChromeUIQuotaInternalsHost) |
212 return &NewWebUI<QuotaInternalsUI>; | 212 return &NewWebUI<QuotaInternalsUI>; |
213 if (url.host() == chrome::kChromeUIWorkersHost) | 213 if (url.host() == chrome::kChromeUIWorkersHost) |
214 return &NewWebUI<WorkersUI>; | 214 return &NewWebUI<WorkersUI>; |
215 | 215 |
216 #if defined(OS_CHROMEOS) | 216 #if defined(OS_CHROMEOS) |
217 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 217 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
218 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 218 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
219 if (url.host() == chrome::kChromeUICollectedCookiesHost || | 219 if (url.host() == chrome::kChromeUICollectedCookiesHost || |
220 url.host() == chrome::kChromeUIHttpAuthHost) { | 220 url.host() == chrome::kChromeUIHttpAuthHost || |
| 221 url.host() == chrome::kChromeUIRepostFormWarningHost) { |
221 return &NewWebUI<ConstrainedHtmlUI>; | 222 return &NewWebUI<ConstrainedHtmlUI>; |
222 } | 223 } |
223 if (url.host() == chrome::kChromeUIActiveDownloadsHost) | 224 if (url.host() == chrome::kChromeUIActiveDownloadsHost) |
224 return &NewWebUI<ActiveDownloadsUI>; | 225 return &NewWebUI<ActiveDownloadsUI>; |
225 if (url.host() == chrome::kChromeUIImageBurnerHost) | 226 if (url.host() == chrome::kChromeUIImageBurnerHost) |
226 return &NewWebUI<ImageBurnUI>; | 227 return &NewWebUI<ImageBurnUI>; |
227 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 228 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
228 return &NewWebUI<KeyboardOverlayUI>; | 229 return &NewWebUI<KeyboardOverlayUI>; |
229 if (url.host() == chrome::kChromeUIMobileSetupHost) | 230 if (url.host() == chrome::kChromeUIMobileSetupHost) |
230 return &NewWebUI<MobileSetupUI>; | 231 return &NewWebUI<MobileSetupUI>; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 return FlashUI::GetFaviconResourceBytes(); | 398 return FlashUI::GetFaviconResourceBytes(); |
398 | 399 |
399 if (page_url.host() == chrome::kChromeUISettingsHost) | 400 if (page_url.host() == chrome::kChromeUISettingsHost) |
400 return OptionsUI::GetFaviconResourceBytes(); | 401 return OptionsUI::GetFaviconResourceBytes(); |
401 | 402 |
402 if (page_url.host() == chrome::kChromeUIPluginsHost) | 403 if (page_url.host() == chrome::kChromeUIPluginsHost) |
403 return PluginsUI::GetFaviconResourceBytes(); | 404 return PluginsUI::GetFaviconResourceBytes(); |
404 | 405 |
405 return NULL; | 406 return NULL; |
406 } | 407 } |
OLD | NEW |