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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 Profile* profile, | 218 Profile* profile, |
219 const GURL& url) { | 219 const GURL& url) { |
220 #if defined(ENABLE_EXTENSIONS) | 220 #if defined(ENABLE_EXTENSIONS) |
221 if (NeedsExtensionWebUI(profile, url)) | 221 if (NeedsExtensionWebUI(profile, url)) |
222 return &NewWebUI<ExtensionWebUI>; | 222 return &NewWebUI<ExtensionWebUI>; |
223 #endif | 223 #endif |
224 | 224 |
225 // This will get called a lot to check all URLs, so do a quick check of other | 225 // This will get called a lot to check all URLs, so do a quick check of other |
226 // schemes to filter out most URLs. | 226 // schemes to filter out most URLs. |
227 if (!url.SchemeIs(chrome::kChromeDevToolsScheme) && | 227 if (!url.SchemeIs(chrome::kChromeDevToolsScheme) && |
228 !url.SchemeIs(chrome::kChromeUIScheme)) { | 228 !url.SchemeIs(content::kChromeUIScheme)) { |
229 return NULL; | 229 return NULL; |
230 } | 230 } |
231 | 231 |
232 /**************************************************************************** | 232 /**************************************************************************** |
233 * Please keep this in alphabetical order. If #ifs or special logics are | 233 * Please keep this in alphabetical order. If #ifs or special logics are |
234 * required, add it below in the appropriate section. | 234 * required, add it below in the appropriate section. |
235 ***************************************************************************/ | 235 ***************************************************************************/ |
236 // We must compare hosts only since some of the Web UIs append extra stuff | 236 // We must compare hosts only since some of the Web UIs append extra stuff |
237 // after the host name. | 237 // after the host name. |
238 // All platform builds of Chrome will need to have a cloud printing | 238 // All platform builds of Chrome will need to have a cloud printing |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 #endif | 659 #endif |
660 | 660 |
661 // Android doesn't use the plugins pages. | 661 // Android doesn't use the plugins pages. |
662 if (page_url.host() == chrome::kChromeUIPluginsHost) | 662 if (page_url.host() == chrome::kChromeUIPluginsHost) |
663 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 663 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
664 | 664 |
665 #endif | 665 #endif |
666 | 666 |
667 return NULL; | 667 return NULL; |
668 } | 668 } |
OLD | NEW |