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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 #if !defined(OS_ANDROID) | 309 #if !defined(OS_ANDROID) |
310 || url.host() == chrome::kChromeUITermsHost | 310 || url.host() == chrome::kChromeUITermsHost |
311 #endif | 311 #endif |
312 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 312 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
313 || url.host() == chrome::kChromeUILinuxProxyConfigHost || | 313 || url.host() == chrome::kChromeUILinuxProxyConfigHost || |
314 url.host() == chrome::kChromeUISandboxHost | 314 url.host() == chrome::kChromeUISandboxHost |
315 #endif | 315 #endif |
316 #if defined(OS_CHROMEOS) | 316 #if defined(OS_CHROMEOS) |
317 || url.host() == chrome::kChromeUIOSCreditsHost | 317 || url.host() == chrome::kChromeUIOSCreditsHost |
318 #endif | 318 #endif |
319 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 319 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
320 || url.host() == chrome::kChromeUIDiscardsHost | 320 || url.host() == chrome::kChromeUIDiscardsHost |
321 #endif | 321 #endif |
322 ); // NOLINT | 322 ); // NOLINT |
323 } | 323 } |
324 | 324 |
325 // Returns a function that can be used to create the right type of WebUI for a | 325 // Returns a function that can be used to create the right type of WebUI for a |
326 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated | 326 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated |
327 // with it. | 327 // with it. |
328 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, | 328 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
329 Profile* profile, | 329 Profile* profile, |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 #endif | 848 #endif |
849 | 849 |
850 // Android doesn't use the plugins pages. | 850 // Android doesn't use the plugins pages. |
851 if (page_url.host() == chrome::kChromeUIPluginsHost) | 851 if (page_url.host() == chrome::kChromeUIPluginsHost) |
852 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 852 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
853 | 853 |
854 #endif | 854 #endif |
855 | 855 |
856 return NULL; | 856 return NULL; |
857 } | 857 } |
OLD | NEW |