| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #endif | 90 #endif |
| 91 | 91 |
| 92 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) | 92 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) |
| 93 #include "chrome/browser/media/router/media_router_feature.h" | 93 #include "chrome/browser/media/router/media_router_feature.h" |
| 94 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" | 94 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" |
| 95 #endif | 95 #endif |
| 96 | 96 |
| 97 #if defined(OS_ANDROID) | 97 #if defined(OS_ANDROID) |
| 98 #include "chrome/browser/ui/webui/net_export_ui.h" | 98 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 99 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 99 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
| 100 #include "chrome/browser/ui/webui/snippets_internals_ui.h" |
| 100 #else | 101 #else |
| 101 #include "chrome/browser/signin/easy_unlock_service.h" | 102 #include "chrome/browser/signin/easy_unlock_service.h" |
| 102 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 103 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
| 103 #include "chrome/browser/ui/webui/copresence_ui.h" | 104 #include "chrome/browser/ui/webui/copresence_ui.h" |
| 104 #include "chrome/browser/ui/webui/devtools_ui.h" | 105 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 105 #include "chrome/browser/ui/webui/inspect_ui.h" | 106 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 106 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" | 107 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" |
| 107 #include "chrome/browser/ui/webui/md_history_ui.h" | 108 #include "chrome/browser/ui/webui/md_history_ui.h" |
| 108 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 109 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 109 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 110 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) | 472 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) |
| 472 return &NewWebUI<DeviceEmulatorUI>; | 473 return &NewWebUI<DeviceEmulatorUI>; |
| 473 } | 474 } |
| 474 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) | 475 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) |
| 475 #endif // defined(OS_CHROMEOS) | 476 #endif // defined(OS_CHROMEOS) |
| 476 #if defined(OS_ANDROID) | 477 #if defined(OS_ANDROID) |
| 477 if (url.host() == chrome::kChromeUINetExportHost) | 478 if (url.host() == chrome::kChromeUINetExportHost) |
| 478 return &NewWebUI<NetExportUI>; | 479 return &NewWebUI<NetExportUI>; |
| 479 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 480 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 480 return &NewWebUI<PopularSitesInternalsUI>; | 481 return &NewWebUI<PopularSitesInternalsUI>; |
| 482 if (url.host() == chrome::kChromeUISnippetsInternalsHost) |
| 483 return &NewWebUI<SnippetsInternalsUI>; |
| 481 #else | 484 #else |
| 482 if (url.host() == chrome::kChromeUICopresenceHost) | 485 if (url.host() == chrome::kChromeUICopresenceHost) |
| 483 return &NewWebUI<CopresenceUI>; | 486 return &NewWebUI<CopresenceUI>; |
| 484 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 487 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 485 return &NewWebUI<DevToolsUI>; | 488 return &NewWebUI<DevToolsUI>; |
| 486 | 489 |
| 487 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 490 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 488 // handled by a remote devtools on the host machine, and other elements, i.e. | 491 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 489 // extensions aren't supported. | 492 // extensions aren't supported. |
| 490 if (url.host() == chrome::kChromeUIInspectHost) | 493 if (url.host() == chrome::kChromeUIInspectHost) |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 #endif | 770 #endif |
| 768 | 771 |
| 769 // Android doesn't use the plugins pages. | 772 // Android doesn't use the plugins pages. |
| 770 if (page_url.host() == chrome::kChromeUIPluginsHost) | 773 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 771 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 774 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 772 | 775 |
| 773 #endif | 776 #endif |
| 774 | 777 |
| 775 return NULL; | 778 return NULL; |
| 776 } | 779 } |
| OLD | NEW |