| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 91 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
| 92 #endif | 92 #endif |
| 93 | 93 |
| 94 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) | 94 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) |
| 95 #include "chrome/browser/media/router/media_router_feature.h" | 95 #include "chrome/browser/media/router/media_router_feature.h" |
| 96 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" | 96 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 #if defined(OS_ANDROID) | 99 #if defined(OS_ANDROID) |
| 100 #include "chrome/browser/ui/webui/net_export_ui.h" | 100 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 101 #include "chrome/browser/ui/webui/offline_internals_ui.h" |
| 101 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 102 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
| 102 #include "chrome/browser/ui/webui/snippets_internals_ui.h" | 103 #include "chrome/browser/ui/webui/snippets_internals_ui.h" |
| 103 #else | 104 #else |
| 104 #include "chrome/browser/signin/easy_unlock_service.h" | 105 #include "chrome/browser/signin/easy_unlock_service.h" |
| 105 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 106 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
| 106 #include "chrome/browser/ui/webui/copresence_ui.h" | 107 #include "chrome/browser/ui/webui/copresence_ui.h" |
| 107 #include "chrome/browser/ui/webui/devtools_ui.h" | 108 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 108 #include "chrome/browser/ui/webui/inspect_ui.h" | 109 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 109 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" | 110 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" |
| 110 #include "chrome/browser/ui/webui/md_history_ui.h" | 111 #include "chrome/browser/ui/webui/md_history_ui.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) | 475 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) |
| 475 if (!base::SysInfo::IsRunningOnChromeOS()) { | 476 if (!base::SysInfo::IsRunningOnChromeOS()) { |
| 476 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) | 477 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) |
| 477 return &NewWebUI<DeviceEmulatorUI>; | 478 return &NewWebUI<DeviceEmulatorUI>; |
| 478 } | 479 } |
| 479 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) | 480 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) |
| 480 #endif // defined(OS_CHROMEOS) | 481 #endif // defined(OS_CHROMEOS) |
| 481 #if defined(OS_ANDROID) | 482 #if defined(OS_ANDROID) |
| 482 if (url.host() == chrome::kChromeUINetExportHost) | 483 if (url.host() == chrome::kChromeUINetExportHost) |
| 483 return &NewWebUI<NetExportUI>; | 484 return &NewWebUI<NetExportUI>; |
| 485 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
| 486 return &NewWebUI<OfflineInternalsUI>; |
| 484 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 487 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 485 return &NewWebUI<PopularSitesInternalsUI>; | 488 return &NewWebUI<PopularSitesInternalsUI>; |
| 486 if (url.host() == chrome::kChromeUISnippetsInternalsHost) | 489 if (url.host() == chrome::kChromeUISnippetsInternalsHost) |
| 487 return &NewWebUI<SnippetsInternalsUI>; | 490 return &NewWebUI<SnippetsInternalsUI>; |
| 488 #else | 491 #else |
| 489 if (url.host() == chrome::kChromeUICopresenceHost) | 492 if (url.host() == chrome::kChromeUICopresenceHost) |
| 490 return &NewWebUI<CopresenceUI>; | 493 return &NewWebUI<CopresenceUI>; |
| 491 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 494 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 492 return &NewWebUI<DevToolsUI>; | 495 return &NewWebUI<DevToolsUI>; |
| 493 | 496 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 #endif | 778 #endif |
| 776 | 779 |
| 777 // Android doesn't use the plugins pages. | 780 // Android doesn't use the plugins pages. |
| 778 if (page_url.host() == chrome::kChromeUIPluginsHost) | 781 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 779 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 782 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 780 | 783 |
| 781 #endif | 784 #endif |
| 782 | 785 |
| 783 return NULL; | 786 return NULL; |
| 784 } | 787 } |
| OLD | NEW |