| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 #if defined(OS_ANDROID) || defined(OS_IOS) | 497 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 498 if (url.host() == chrome::kChromeUINetExportHost) | 498 if (url.host() == chrome::kChromeUINetExportHost) |
| 499 return &NewWebUI<NetExportUI>; | 499 return &NewWebUI<NetExportUI>; |
| 500 #else | 500 #else |
| 501 if (url.host() == chrome::kChromeUICopresenceHost) | 501 if (url.host() == chrome::kChromeUICopresenceHost) |
| 502 return &NewWebUI<CopresenceUI>; | 502 return &NewWebUI<CopresenceUI>; |
| 503 if (url.host() == chrome::kChromeUIChromeSigninHost) | 503 if (url.host() == chrome::kChromeUIChromeSigninHost) |
| 504 return &NewWebUI<InlineLoginUI>; | 504 return &NewWebUI<InlineLoginUI>; |
| 505 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 505 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 506 return &NewWebUI<DevToolsUI>; | 506 return &NewWebUI<DevToolsUI>; |
| 507 #if defined(ENABLE_SERVICE_DISCOVERY) |
| 507 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost) | 508 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost) |
| 508 return &NewWebUI<WebRTCDeviceProvider::WebUI>; | 509 return &NewWebUI<WebRTCDeviceProvider::WebUI>; |
| 510 #endif |
| 509 | 511 |
| 510 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 512 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 511 // handled by a remote devtools on the host machine, and other elements, i.e. | 513 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 512 // extensions aren't supported. | 514 // extensions aren't supported. |
| 513 if (url.host() == chrome::kChromeUIInspectHost) | 515 if (url.host() == chrome::kChromeUIInspectHost) |
| 514 return &NewWebUI<InspectUI>; | 516 return &NewWebUI<InspectUI>; |
| 515 #endif | 517 #endif |
| 516 #if defined(OS_ANDROID) | 518 #if defined(OS_ANDROID) |
| 517 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 519 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 518 return &NewWebUI<PopularSitesInternalsUI>; | 520 return &NewWebUI<PopularSitesInternalsUI>; |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 #endif | 802 #endif |
| 801 | 803 |
| 802 // Android doesn't use the plugins pages. | 804 // Android doesn't use the plugins pages. |
| 803 if (page_url.host() == chrome::kChromeUIPluginsHost) | 805 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 804 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 806 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 805 | 807 |
| 806 #endif | 808 #endif |
| 807 | 809 |
| 808 return NULL; | 810 return NULL; |
| 809 } | 811 } |
| OLD | NEW |