| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 #if !defined(OS_ANDROID) | 271 #if !defined(OS_ANDROID) |
| 272 || url.host() == chrome::kChromeUITermsHost | 272 || url.host() == chrome::kChromeUITermsHost |
| 273 #endif | 273 #endif |
| 274 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 274 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
| 275 || url.host() == chrome::kChromeUILinuxProxyConfigHost || | 275 || url.host() == chrome::kChromeUILinuxProxyConfigHost || |
| 276 url.host() == chrome::kChromeUISandboxHost | 276 url.host() == chrome::kChromeUISandboxHost |
| 277 #endif | 277 #endif |
| 278 #if defined(OS_CHROMEOS) | 278 #if defined(OS_CHROMEOS) |
| 279 || url.host() == chrome::kChromeUIOSCreditsHost | 279 || url.host() == chrome::kChromeUIOSCreditsHost |
| 280 #endif | 280 #endif |
| 281 #if defined(OS_WIN) || defined(OS_CHROMEOS) | 281 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 282 || url.host() == chrome::kChromeUIDiscardsHost | 282 || url.host() == chrome::kChromeUIDiscardsHost |
| 283 #endif | 283 #endif |
| 284 ); // NOLINT | 284 ); // NOLINT |
| 285 } | 285 } |
| 286 | 286 |
| 287 // Returns a function that can be used to create the right type of WebUI for a | 287 // Returns a function that can be used to create the right type of WebUI for a |
| 288 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated | 288 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated |
| 289 // with it. | 289 // with it. |
| 290 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, | 290 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
| 291 Profile* profile, | 291 Profile* profile, |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 #endif | 757 #endif |
| 758 | 758 |
| 759 // Android doesn't use the plugins pages. | 759 // Android doesn't use the plugins pages. |
| 760 if (page_url.host() == chrome::kChromeUIPluginsHost) | 760 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 761 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 761 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 762 | 762 |
| 763 #endif | 763 #endif |
| 764 | 764 |
| 765 return NULL; | 765 return NULL; |
| 766 } | 766 } |
| OLD | NEW |