OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_controller_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_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/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 if (url.host() == chrome::kChromeUIFeedbackHost) | 184 if (url.host() == chrome::kChromeUIFeedbackHost) |
185 return &NewWebUI<FeedbackUI>; | 185 return &NewWebUI<FeedbackUI>; |
186 if (url.host() == chrome::kChromeUIFlagsHost) | 186 if (url.host() == chrome::kChromeUIFlagsHost) |
187 return &NewWebUI<FlagsUI>; | 187 return &NewWebUI<FlagsUI>; |
188 if (url.host() == chrome::kChromeUIFlashHost) | 188 if (url.host() == chrome::kChromeUIFlashHost) |
189 return &NewWebUI<FlashUI>; | 189 return &NewWebUI<FlashUI>; |
190 if (url.host() == chrome::kChromeUIGpuInternalsHost) | 190 if (url.host() == chrome::kChromeUIGpuInternalsHost) |
191 return &NewWebUI<GpuInternalsUI>; | 191 return &NewWebUI<GpuInternalsUI>; |
192 if (url.host() == chrome::kChromeUIHelpFrameHost) | 192 if (url.host() == chrome::kChromeUIHelpFrameHost) |
193 return &NewWebUI<HelpUI>; | 193 return &NewWebUI<HelpUI>; |
194 if (url.host() == chrome::kChromeUIHistoryHost) | 194 if (url.host() == chrome::kChromeUIHistoryFrameHost) |
195 return &NewWebUI<HistoryUI>; | 195 return &NewWebUI<HistoryUI>; |
196 if (url.host() == chrome::kChromeUIMediaInternalsHost) | 196 if (url.host() == chrome::kChromeUIMediaInternalsHost) |
197 return &NewWebUI<MediaInternalsUI>; | 197 return &NewWebUI<MediaInternalsUI>; |
198 if (url.host() == chrome::kChromeUINetInternalsHost) | 198 if (url.host() == chrome::kChromeUINetInternalsHost) |
199 return &NewWebUI<NetInternalsUI>; | 199 return &NewWebUI<NetInternalsUI>; |
200 if (url.host() == chrome::kChromeUINetworkActionPredictorHost) | 200 if (url.host() == chrome::kChromeUINetworkActionPredictorHost) |
201 return &NewWebUI<NetworkActionPredictorUI>; | 201 return &NewWebUI<NetworkActionPredictorUI>; |
202 if (url.host() == chrome::kChromeUIOmniboxHost) | 202 if (url.host() == chrome::kChromeUIOmniboxHost) |
203 return &NewWebUI<OmniboxUI>; | 203 return &NewWebUI<OmniboxUI>; |
204 if (url.host() == chrome::kChromeUIPluginsHost) | 204 if (url.host() == chrome::kChromeUIPluginsHost) |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 494 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
495 return options2::OptionsUI::GetFaviconResourceBytes(); | 495 return options2::OptionsUI::GetFaviconResourceBytes(); |
496 #endif | 496 #endif |
497 | 497 |
498 if (page_url.host() == chrome::kChromeUIPluginsHost) | 498 if (page_url.host() == chrome::kChromeUIPluginsHost) |
499 return PluginsUI::GetFaviconResourceBytes(); | 499 return PluginsUI::GetFaviconResourceBytes(); |
500 | 500 |
501 return NULL; | 501 return NULL; |
502 } | 502 } |
OLD | NEW |