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/chrome_thread.h" | 8 #include "chrome/browser/chrome_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/downloads_ui.h" | 10 #include "chrome/browser/dom_ui/downloads_ui.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 return &NewDOMUI<HistoryUI>; | 111 return &NewDOMUI<HistoryUI>; |
112 if (url.host() == chrome::kChromeUIHistory2Host) | 112 if (url.host() == chrome::kChromeUIHistory2Host) |
113 return &NewDOMUI<HistoryUI2>; | 113 return &NewDOMUI<HistoryUI2>; |
114 if (url.host() == chrome::kChromeUINetInternalsHost) | 114 if (url.host() == chrome::kChromeUINetInternalsHost) |
115 return &NewDOMUI<NetInternalsUI>; | 115 return &NewDOMUI<NetInternalsUI>; |
116 if (url.host() == chrome::kChromeUIPluginsHost) | 116 if (url.host() == chrome::kChromeUIPluginsHost) |
117 return &NewDOMUI<PluginsUI>; | 117 return &NewDOMUI<PluginsUI>; |
118 #if defined(ENABLE_REMOTING) | 118 #if defined(ENABLE_REMOTING) |
119 if (url.host() == chrome::kChromeUIRemotingHost) { | 119 if (url.host() == chrome::kChromeUIRemotingHost) { |
120 if (CommandLine::ForCurrentProcess()->HasSwitch( | 120 if (CommandLine::ForCurrentProcess()->HasSwitch( |
121 switches::kEnableChromoting)) { | 121 switches::kEnableRemoting)) { |
122 return &NewDOMUI<RemotingUI>; | 122 return &NewDOMUI<RemotingUI>; |
123 } | 123 } |
124 } | 124 } |
125 #endif | 125 #endif |
126 | 126 |
127 #if defined(OS_CHROMEOS) | 127 #if defined(OS_CHROMEOS) |
128 if (url.host() == chrome::kChromeUIFileBrowseHost) | 128 if (url.host() == chrome::kChromeUIFileBrowseHost) |
129 return &NewDOMUI<FileBrowseUI>; | 129 return &NewDOMUI<FileBrowseUI>; |
130 if (url.host() == chrome::kChromeUIMediaplayerHost) | 130 if (url.host() == chrome::kChromeUIMediaplayerHost) |
131 return &NewDOMUI<MediaplayerUI>; | 131 return &NewDOMUI<MediaplayerUI>; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 if (page_url.host() == chrome::kChromeUIPluginsHost) | 228 if (page_url.host() == chrome::kChromeUIPluginsHost) |
229 return PluginsUI::GetFaviconResourceBytes(); | 229 return PluginsUI::GetFaviconResourceBytes(); |
230 | 230 |
231 #if defined(ENABLE_REMOTING) | 231 #if defined(ENABLE_REMOTING) |
232 if (page_url.host() == chrome::kChromeUIRemotingHost) | 232 if (page_url.host() == chrome::kChromeUIRemotingHost) |
233 return RemotingUI::GetFaviconResourceBytes(); | 233 return RemotingUI::GetFaviconResourceBytes(); |
234 #endif | 234 #endif |
235 | 235 |
236 return NULL; | 236 return NULL; |
237 } | 237 } |
OLD | NEW |