| 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_proxy.h" | 10 #include "base/message_loop_proxy.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) | 202 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) |
| 203 return &NewWebUI<ConstrainedWebDialogUI>; | 203 return &NewWebUI<ConstrainedWebDialogUI>; |
| 204 if (url.host() == chrome::kChromeUIFlagsHost) | 204 if (url.host() == chrome::kChromeUIFlagsHost) |
| 205 return &NewWebUI<FlagsUI>; | 205 return &NewWebUI<FlagsUI>; |
| 206 if (url.host() == chrome::kChromeUIHistoryFrameHost) | 206 if (url.host() == chrome::kChromeUIHistoryFrameHost) |
| 207 return &NewWebUI<HistoryUI>; | 207 return &NewWebUI<HistoryUI>; |
| 208 if (url.host() == chrome::kChromeUIInstantHost) | 208 if (url.host() == chrome::kChromeUIInstantHost) |
| 209 return &NewWebUI<InstantUI>; | 209 return &NewWebUI<InstantUI>; |
| 210 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost) | 210 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost) |
| 211 return &NewWebUI<LocalOmniboxPopupUI>; | 211 return &NewWebUI<LocalOmniboxPopupUI>; |
| 212 if (url.host() == chrome::kChromeUIManagedUserPassphrasePageHost) |
| 213 return &NewWebUI<ConstrainedWebDialogUI>; |
| 212 if (url.host() == chrome::kChromeUIMemoryInternalsHost && | 214 if (url.host() == chrome::kChromeUIMemoryInternalsHost && |
| 213 CommandLine::ForCurrentProcess()->HasSwitch( | 215 CommandLine::ForCurrentProcess()->HasSwitch( |
| 214 switches::kEnableMemoryInternalsUI)) { | 216 switches::kEnableMemoryInternalsUI)) { |
| 215 return &NewWebUI<MemoryInternalsUI>; | 217 return &NewWebUI<MemoryInternalsUI>; |
| 216 } | 218 } |
| 217 #if !defined(DISABLE_NACL) | 219 #if !defined(DISABLE_NACL) |
| 218 if (url.host() == chrome::kChromeUINaClHost) | 220 if (url.host() == chrome::kChromeUINaClHost) |
| 219 return &NewWebUI<NaClUI>; | 221 return &NewWebUI<NaClUI>; |
| 220 #endif | 222 #endif |
| 221 #if defined(OS_ANDROID) || defined(OS_IOS) | 223 #if defined(OS_ANDROID) || defined(OS_IOS) |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 567 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 566 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); | 568 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); |
| 567 | 569 |
| 568 // Android doesn't use the plugins pages. | 570 // Android doesn't use the plugins pages. |
| 569 if (page_url.host() == chrome::kChromeUIPluginsHost) | 571 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 570 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 572 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 571 #endif | 573 #endif |
| 572 | 574 |
| 573 return NULL; | 575 return NULL; |
| 574 } | 576 } |
| OLD | NEW |