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 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/ui/webui/gpu_internals_ui.h" | 23 #include "chrome/browser/ui/webui/gpu_internals_ui.h" |
24 #include "chrome/browser/ui/webui/history2_ui.h" | 24 #include "chrome/browser/ui/webui/history2_ui.h" |
25 #include "chrome/browser/ui/webui/history_ui.h" | 25 #include "chrome/browser/ui/webui/history_ui.h" |
26 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 26 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
27 #include "chrome/browser/ui/webui/media_internals_ui.h" | 27 #include "chrome/browser/ui/webui/media_internals_ui.h" |
28 #include "chrome/browser/ui/webui/net_internals_ui.h" | 28 #include "chrome/browser/ui/webui/net_internals_ui.h" |
29 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 29 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
30 #include "chrome/browser/ui/webui/options/options_ui.h" | 30 #include "chrome/browser/ui/webui/options/options_ui.h" |
31 #include "chrome/browser/ui/webui/plugins_ui.h" | 31 #include "chrome/browser/ui/webui/plugins_ui.h" |
32 #include "chrome/browser/ui/webui/print_preview_ui.h" | 32 #include "chrome/browser/ui/webui/print_preview_ui.h" |
| 33 #include "chrome/browser/ui/webui/quota_internals_ui.h" |
33 #include "chrome/browser/ui/webui/sessions_ui.h" | 34 #include "chrome/browser/ui/webui/sessions_ui.h" |
34 #include "chrome/browser/ui/webui/sync_internals_ui.h" | 35 #include "chrome/browser/ui/webui/sync_internals_ui.h" |
35 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h" | 36 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h" |
36 #include "chrome/browser/ui/webui/textfields_ui.h" | 37 #include "chrome/browser/ui/webui/textfields_ui.h" |
37 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
38 #include "chrome/common/extensions/extension_constants.h" | 39 #include "chrome/common/extensions/extension_constants.h" |
39 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
40 #include "content/browser/tab_contents/tab_contents.h" | 41 #include "content/browser/tab_contents/tab_contents.h" |
41 #include "content/browser/webui/web_ui.h" | 42 #include "content/browser/webui/web_ui.h" |
42 #include "googleurl/src/gurl.h" | 43 #include "googleurl/src/gurl.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 if (url.host() == chrome::kChromeUINetInternalsHost) | 173 if (url.host() == chrome::kChromeUINetInternalsHost) |
173 return &NewWebUI<NetInternalsUI>; | 174 return &NewWebUI<NetInternalsUI>; |
174 if (url.host() == chrome::kChromeUIPluginsHost) | 175 if (url.host() == chrome::kChromeUIPluginsHost) |
175 return &NewWebUI<PluginsUI>; | 176 return &NewWebUI<PluginsUI>; |
176 if (url.host() == chrome::kChromeUISessionsHost) | 177 if (url.host() == chrome::kChromeUISessionsHost) |
177 return &NewWebUI<SessionsUI>; | 178 return &NewWebUI<SessionsUI>; |
178 if (url.host() == chrome::kChromeUISyncInternalsHost) | 179 if (url.host() == chrome::kChromeUISyncInternalsHost) |
179 return &NewWebUI<SyncInternalsUI>; | 180 return &NewWebUI<SyncInternalsUI>; |
180 if (url.host() == chrome::kChromeUISettingsHost) | 181 if (url.host() == chrome::kChromeUISettingsHost) |
181 return &NewWebUI<OptionsUI>; | 182 return &NewWebUI<OptionsUI>; |
| 183 if (url.host() == chrome::kChromeUIQuotaInternalsHost) |
| 184 return &NewWebUI<QuotaInternalsUI>; |
182 | 185 |
183 #if defined(OS_CHROMEOS) | 186 #if defined(OS_CHROMEOS) |
184 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 187 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
185 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 188 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
186 if (url.host() == chrome::kChromeUICollectedCookiesHost || | 189 if (url.host() == chrome::kChromeUICollectedCookiesHost || |
187 url.host() == chrome::kChromeUIHttpAuthHost) { | 190 url.host() == chrome::kChromeUIHttpAuthHost) { |
188 return &NewWebUI<ConstrainedHtmlUI>; | 191 return &NewWebUI<ConstrainedHtmlUI>; |
189 } | 192 } |
190 if (url.host() == chrome::kChromeUIActiveDownloadsHost) | 193 if (url.host() == chrome::kChromeUIActiveDownloadsHost) |
191 return &NewWebUI<ActiveDownloadsUI>; | 194 return &NewWebUI<ActiveDownloadsUI>; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 return FlashUI::GetFaviconResourceBytes(); | 365 return FlashUI::GetFaviconResourceBytes(); |
363 | 366 |
364 if (page_url.host() == chrome::kChromeUISettingsHost) | 367 if (page_url.host() == chrome::kChromeUISettingsHost) |
365 return OptionsUI::GetFaviconResourceBytes(); | 368 return OptionsUI::GetFaviconResourceBytes(); |
366 | 369 |
367 if (page_url.host() == chrome::kChromeUIPluginsHost) | 370 if (page_url.host() == chrome::kChromeUIPluginsHost) |
368 return PluginsUI::GetFaviconResourceBytes(); | 371 return PluginsUI::GetFaviconResourceBytes(); |
369 | 372 |
370 return NULL; | 373 return NULL; |
371 } | 374 } |
OLD | NEW |