| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/dom_ui_factory.h" | 5 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/browser_thread.h" | 8 #include "chrome/browser/browser_thread.h" |
| 9 #include "chrome/browser/dom_ui/bookmarks_ui.h" | 9 #include "chrome/browser/dom_ui/bookmarks_ui.h" |
| 10 #include "chrome/browser/dom_ui/bug_report_ui.h" | 10 #include "chrome/browser/dom_ui/bug_report_ui.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 if (url.host() == chrome::kChromeUIDevToolsHost) | 121 if (url.host() == chrome::kChromeUIDevToolsHost) |
| 122 return &NewDOMUI<DevToolsUI>; | 122 return &NewDOMUI<DevToolsUI>; |
| 123 if (url.host() == chrome::kChromeUIDownloadsHost) | 123 if (url.host() == chrome::kChromeUIDownloadsHost) |
| 124 return &NewDOMUI<DownloadsUI>; | 124 return &NewDOMUI<DownloadsUI>; |
| 125 if (url.host() == chrome::kChromeUIExtensionsHost) | 125 if (url.host() == chrome::kChromeUIExtensionsHost) |
| 126 return &NewDOMUI<ExtensionsUI>; | 126 return &NewDOMUI<ExtensionsUI>; |
| 127 if (url.host() == chrome::kChromeUIHistoryHost) | 127 if (url.host() == chrome::kChromeUIHistoryHost) |
| 128 return &NewDOMUI<HistoryUI>; | 128 return &NewDOMUI<HistoryUI>; |
| 129 if (url.host() == chrome::kChromeUIHistory2Host) | 129 if (url.host() == chrome::kChromeUIHistory2Host) |
| 130 return &NewDOMUI<HistoryUI2>; | 130 return &NewDOMUI<HistoryUI2>; |
| 131 if (about_labs::IsEnabled() && url.host() == chrome::kChromeUILabsHost) | 131 if (about_labs::IsEnabled() && url.host() == chrome::kChromeUIFlagsHost) |
| 132 return &NewDOMUI<LabsUI>; | 132 return &NewDOMUI<LabsUI>; |
| 133 #if defined(TOUCH_UI) | 133 #if defined(TOUCH_UI) |
| 134 if (url.host() == chrome::kChromeUIKeyboardHost) | 134 if (url.host() == chrome::kChromeUIKeyboardHost) |
| 135 return &NewDOMUI<KeyboardUI>; | 135 return &NewDOMUI<KeyboardUI>; |
| 136 #endif | 136 #endif |
| 137 if (url.host() == chrome::kChromeUINetInternalsHost) | 137 if (url.host() == chrome::kChromeUINetInternalsHost) |
| 138 return &NewDOMUI<NetInternalsUI>; | 138 return &NewDOMUI<NetInternalsUI>; |
| 139 if (url.host() == chrome::kChromeUIPluginsHost) | 139 if (url.host() == chrome::kChromeUIPluginsHost) |
| 140 return &NewDOMUI<PluginsUI>; | 140 return &NewDOMUI<PluginsUI>; |
| 141 #if defined(ENABLE_REMOTING) | 141 #if defined(ENABLE_REMOTING) |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 if (page_url.host() == chrome::kChromeUIExtensionsHost) | 260 if (page_url.host() == chrome::kChromeUIExtensionsHost) |
| 261 return ExtensionsUI::GetFaviconResourceBytes(); | 261 return ExtensionsUI::GetFaviconResourceBytes(); |
| 262 | 262 |
| 263 if (page_url.host() == chrome::kChromeUIHistoryHost) | 263 if (page_url.host() == chrome::kChromeUIHistoryHost) |
| 264 return HistoryUI::GetFaviconResourceBytes(); | 264 return HistoryUI::GetFaviconResourceBytes(); |
| 265 | 265 |
| 266 if (page_url.host() == chrome::kChromeUIHistory2Host) | 266 if (page_url.host() == chrome::kChromeUIHistory2Host) |
| 267 return HistoryUI2::GetFaviconResourceBytes(); | 267 return HistoryUI2::GetFaviconResourceBytes(); |
| 268 | 268 |
| 269 if (about_labs::IsEnabled() && page_url.host() == chrome::kChromeUILabsHost) | 269 if (about_labs::IsEnabled() && page_url.host() == chrome::kChromeUIFlagsHost) |
| 270 return LabsUI::GetFaviconResourceBytes(); | 270 return LabsUI::GetFaviconResourceBytes(); |
| 271 | 271 |
| 272 if (page_url.host() == chrome::kChromeUISettingsHost) | 272 if (page_url.host() == chrome::kChromeUISettingsHost) |
| 273 return OptionsUI::GetFaviconResourceBytes(); | 273 return OptionsUI::GetFaviconResourceBytes(); |
| 274 | 274 |
| 275 if (page_url.host() == chrome::kChromeUIPluginsHost) | 275 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 276 return PluginsUI::GetFaviconResourceBytes(); | 276 return PluginsUI::GetFaviconResourceBytes(); |
| 277 | 277 |
| 278 #if defined(ENABLE_REMOTING) | 278 #if defined(ENABLE_REMOTING) |
| 279 if (page_url.host() == chrome::kChromeUIRemotingHost) | 279 if (page_url.host() == chrome::kChromeUIRemotingHost) |
| 280 return RemotingUI::GetFaviconResourceBytes(); | 280 return RemotingUI::GetFaviconResourceBytes(); |
| 281 #endif | 281 #endif |
| 282 | 282 |
| 283 return NULL; | 283 return NULL; |
| 284 } | 284 } |
| OLD | NEW |