| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 } | 276 } |
| 277 #endif | 277 #endif |
| 278 if (url.host() == chrome::kChromeUIFlagsHost) | 278 if (url.host() == chrome::kChromeUIFlagsHost) |
| 279 return &NewWebUI<FlagsUI>; | 279 return &NewWebUI<FlagsUI>; |
| 280 if (url.host() == chrome::kChromeUIHistoryFrameHost) | 280 if (url.host() == chrome::kChromeUIHistoryFrameHost) |
| 281 return &NewWebUI<HistoryUI>; | 281 return &NewWebUI<HistoryUI>; |
| 282 if (url.host() == chrome::kChromeUIInstantHost) | 282 if (url.host() == chrome::kChromeUIInstantHost) |
| 283 return &NewWebUI<InstantUI>; | 283 return &NewWebUI<InstantUI>; |
| 284 if (url.host() == chrome::kChromeUIInvalidationsHost) | 284 if (url.host() == chrome::kChromeUIInvalidationsHost) |
| 285 return &NewWebUI<InvalidationsUI>; | 285 return &NewWebUI<InvalidationsUI>; |
| 286 if (url.host() == chrome::kChromeUIManagedUserPassphrasePageHost) | 286 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) |
| 287 return &NewWebUI<ConstrainedWebDialogUI>; | 287 return &NewWebUI<ConstrainedWebDialogUI>; |
| 288 if (url.host() == chrome::kChromeUIMemoryInternalsHost) | 288 if (url.host() == chrome::kChromeUIMemoryInternalsHost) |
| 289 return &NewWebUI<MemoryInternalsUI>; | 289 return &NewWebUI<MemoryInternalsUI>; |
| 290 #if !defined(DISABLE_NACL) | 290 #if !defined(DISABLE_NACL) |
| 291 if (url.host() == chrome::kChromeUINaClHost) | 291 if (url.host() == chrome::kChromeUINaClHost) |
| 292 return &NewWebUI<NaClUI>; | 292 return &NewWebUI<NaClUI>; |
| 293 #endif | 293 #endif |
| 294 #if defined(OS_ANDROID) || defined(OS_IOS) | 294 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 295 if (url.host() == chrome::kChromeUINetExportHost) | 295 if (url.host() == chrome::kChromeUINetExportHost) |
| 296 return &NewWebUI<NetExportUI>; | 296 return &NewWebUI<NetExportUI>; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 #endif | 707 #endif |
| 708 | 708 |
| 709 // Android doesn't use the plugins pages. | 709 // Android doesn't use the plugins pages. |
| 710 if (page_url.host() == chrome::kChromeUIPluginsHost) | 710 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 711 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 711 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 712 | 712 |
| 713 #endif | 713 #endif |
| 714 | 714 |
| 715 return NULL; | 715 return NULL; |
| 716 } | 716 } |
| OLD | NEW |