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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 108 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
109 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 109 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
110 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 110 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
111 #include "chrome/browser/ui/webui/system_info_ui.h" | 111 #include "chrome/browser/ui/webui/system_info_ui.h" |
112 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 112 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
113 #endif | 113 #endif |
114 | 114 |
115 #if defined(OS_ANDROID) || defined(OS_IOS) | 115 #if defined(OS_ANDROID) || defined(OS_IOS) |
116 #include "chrome/browser/ui/webui/net_export_ui.h" | 116 #include "chrome/browser/ui/webui/net_export_ui.h" |
117 #else | 117 #else |
118 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" | |
119 #include "chrome/browser/signin/easy_unlock_service.h" | 118 #include "chrome/browser/signin/easy_unlock_service.h" |
120 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 119 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
121 #include "chrome/browser/ui/webui/copresence_ui.h" | 120 #include "chrome/browser/ui/webui/copresence_ui.h" |
122 #include "chrome/browser/ui/webui/devtools_ui.h" | 121 #include "chrome/browser/ui/webui/devtools_ui.h" |
123 #include "chrome/browser/ui/webui/inspect_ui.h" | 122 #include "chrome/browser/ui/webui/inspect_ui.h" |
124 #endif | 123 #endif |
125 | 124 |
126 #if defined(OS_ANDROID) | 125 #if defined(OS_ANDROID) |
127 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 126 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
128 #endif | 127 #endif |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 #if defined(OS_ANDROID) || defined(OS_IOS) | 496 #if defined(OS_ANDROID) || defined(OS_IOS) |
498 if (url.host() == chrome::kChromeUINetExportHost) | 497 if (url.host() == chrome::kChromeUINetExportHost) |
499 return &NewWebUI<NetExportUI>; | 498 return &NewWebUI<NetExportUI>; |
500 #else | 499 #else |
501 if (url.host() == chrome::kChromeUICopresenceHost) | 500 if (url.host() == chrome::kChromeUICopresenceHost) |
502 return &NewWebUI<CopresenceUI>; | 501 return &NewWebUI<CopresenceUI>; |
503 if (url.host() == chrome::kChromeUIChromeSigninHost) | 502 if (url.host() == chrome::kChromeUIChromeSigninHost) |
504 return &NewWebUI<InlineLoginUI>; | 503 return &NewWebUI<InlineLoginUI>; |
505 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 504 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
506 return &NewWebUI<DevToolsUI>; | 505 return &NewWebUI<DevToolsUI>; |
507 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost) | |
508 return &NewWebUI<WebRTCDeviceProvider::WebUI>; | |
509 | 506 |
510 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 507 // 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. | 508 // handled by a remote devtools on the host machine, and other elements, i.e. |
512 // extensions aren't supported. | 509 // extensions aren't supported. |
513 if (url.host() == chrome::kChromeUIInspectHost) | 510 if (url.host() == chrome::kChromeUIInspectHost) |
514 return &NewWebUI<InspectUI>; | 511 return &NewWebUI<InspectUI>; |
515 #endif | 512 #endif |
516 #if defined(OS_ANDROID) | 513 #if defined(OS_ANDROID) |
517 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 514 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
518 return &NewWebUI<PopularSitesInternalsUI>; | 515 return &NewWebUI<PopularSitesInternalsUI>; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 #endif | 797 #endif |
801 | 798 |
802 // Android doesn't use the plugins pages. | 799 // Android doesn't use the plugins pages. |
803 if (page_url.host() == chrome::kChromeUIPluginsHost) | 800 if (page_url.host() == chrome::kChromeUIPluginsHost) |
804 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 801 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
805 | 802 |
806 #endif | 803 #endif |
807 | 804 |
808 return NULL; | 805 return NULL; |
809 } | 806 } |
OLD | NEW |