| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 if (url.host() == chrome::kChromeUIDevToolsHost) | 120 if (url.host() == chrome::kChromeUIDevToolsHost) |
| 121 return &NewDOMUI<DevToolsUI>; | 121 return &NewDOMUI<DevToolsUI>; |
| 122 if (url.host() == chrome::kChromeUIDownloadsHost) | 122 if (url.host() == chrome::kChromeUIDownloadsHost) |
| 123 return &NewDOMUI<DownloadsUI>; | 123 return &NewDOMUI<DownloadsUI>; |
| 124 if (url.host() == chrome::kChromeUIExtensionsHost) | 124 if (url.host() == chrome::kChromeUIExtensionsHost) |
| 125 return &NewDOMUI<ExtensionsUI>; | 125 return &NewDOMUI<ExtensionsUI>; |
| 126 if (url.host() == chrome::kChromeUIHistoryHost) | 126 if (url.host() == chrome::kChromeUIHistoryHost) |
| 127 return &NewDOMUI<HistoryUI>; | 127 return &NewDOMUI<HistoryUI>; |
| 128 if (url.host() == chrome::kChromeUIHistory2Host) | 128 if (url.host() == chrome::kChromeUIHistory2Host) |
| 129 return &NewDOMUI<HistoryUI2>; | 129 return &NewDOMUI<HistoryUI2>; |
| 130 if (about_labs::IsEnabled() && url.host() == chrome::kChromeUILabsHost) | 130 if (about_labs::IsEnabled() && url.host() == chrome::kChromeUIFlagsHost) |
| 131 return &NewDOMUI<LabsUI>; | 131 return &NewDOMUI<LabsUI>; |
| 132 #if defined(TOUCH_UI) | 132 #if defined(TOUCH_UI) |
| 133 if (url.host() == chrome::kChromeUIKeyboardHost) | 133 if (url.host() == chrome::kChromeUIKeyboardHost) |
| 134 return &NewDOMUI<KeyboardUI>; | 134 return &NewDOMUI<KeyboardUI>; |
| 135 #endif | 135 #endif |
| 136 if (url.host() == chrome::kChromeUINetInternalsHost) | 136 if (url.host() == chrome::kChromeUINetInternalsHost) |
| 137 return &NewDOMUI<NetInternalsUI>; | 137 return &NewDOMUI<NetInternalsUI>; |
| 138 if (url.host() == chrome::kChromeUIPluginsHost) | 138 if (url.host() == chrome::kChromeUIPluginsHost) |
| 139 return &NewDOMUI<PluginsUI>; | 139 return &NewDOMUI<PluginsUI>; |
| 140 #if defined(ENABLE_REMOTING) | 140 #if defined(ENABLE_REMOTING) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 if (page_url.host() == chrome::kChromeUIExtensionsHost) | 257 if (page_url.host() == chrome::kChromeUIExtensionsHost) |
| 258 return ExtensionsUI::GetFaviconResourceBytes(); | 258 return ExtensionsUI::GetFaviconResourceBytes(); |
| 259 | 259 |
| 260 if (page_url.host() == chrome::kChromeUIHistoryHost) | 260 if (page_url.host() == chrome::kChromeUIHistoryHost) |
| 261 return HistoryUI::GetFaviconResourceBytes(); | 261 return HistoryUI::GetFaviconResourceBytes(); |
| 262 | 262 |
| 263 if (page_url.host() == chrome::kChromeUIHistory2Host) | 263 if (page_url.host() == chrome::kChromeUIHistory2Host) |
| 264 return HistoryUI2::GetFaviconResourceBytes(); | 264 return HistoryUI2::GetFaviconResourceBytes(); |
| 265 | 265 |
| 266 if (about_labs::IsEnabled() && page_url.host() == chrome::kChromeUILabsHost) | 266 if (about_labs::IsEnabled() && page_url.host() == chrome::kChromeUIFlagsHost) |
| 267 return LabsUI::GetFaviconResourceBytes(); | 267 return LabsUI::GetFaviconResourceBytes(); |
| 268 | 268 |
| 269 if (page_url.host() == chrome::kChromeUISettingsHost) | 269 if (page_url.host() == chrome::kChromeUISettingsHost) |
| 270 return OptionsUI::GetFaviconResourceBytes(); | 270 return OptionsUI::GetFaviconResourceBytes(); |
| 271 | 271 |
| 272 if (page_url.host() == chrome::kChromeUIPluginsHost) | 272 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 273 return PluginsUI::GetFaviconResourceBytes(); | 273 return PluginsUI::GetFaviconResourceBytes(); |
| 274 | 274 |
| 275 #if defined(ENABLE_REMOTING) | 275 #if defined(ENABLE_REMOTING) |
| 276 if (page_url.host() == chrome::kChromeUIRemotingHost) | 276 if (page_url.host() == chrome::kChromeUIRemotingHost) |
| 277 return RemotingUI::GetFaviconResourceBytes(); | 277 return RemotingUI::GetFaviconResourceBytes(); |
| 278 #endif | 278 #endif |
| 279 | 279 |
| 280 return NULL; | 280 return NULL; |
| 281 } | 281 } |
| OLD | NEW |