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