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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #endif | 81 #endif |
82 | 82 |
83 #if defined(ENABLE_WEBRTC) | 83 #if defined(ENABLE_WEBRTC) |
84 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" | 84 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" |
85 #endif | 85 #endif |
86 | 86 |
87 #if defined(ENABLE_PRINT_PREVIEW) | 87 #if defined(ENABLE_PRINT_PREVIEW) |
88 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 88 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
89 #endif | 89 #endif |
90 | 90 |
91 #if defined(ENABLE_MEDIA_ROUTER) | 91 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) |
92 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" | 92 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" |
93 #endif | 93 #endif |
94 | 94 |
95 #if !defined(OS_ANDROID) | 95 #if !defined(OS_ANDROID) |
96 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 96 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
97 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 97 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
98 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 98 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
99 #include "chrome/browser/ui/webui/system_info_ui.h" | 99 #include "chrome/browser/ui/webui/system_info_ui.h" |
100 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 100 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
101 #endif | 101 #endif |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 #endif | 550 #endif |
551 #if defined(ENABLE_SERVICE_DISCOVERY) | 551 #if defined(ENABLE_SERVICE_DISCOVERY) |
552 if (url.host() == chrome::kChromeUIDevicesHost) { | 552 if (url.host() == chrome::kChromeUIDevicesHost) { |
553 return &NewWebUI<LocalDiscoveryUI>; | 553 return &NewWebUI<LocalDiscoveryUI>; |
554 } | 554 } |
555 #endif | 555 #endif |
556 #if defined(ENABLE_WEBRTC) | 556 #if defined(ENABLE_WEBRTC) |
557 if (url.host() == chrome::kChromeUIWebRtcLogsHost) | 557 if (url.host() == chrome::kChromeUIWebRtcLogsHost) |
558 return &NewWebUI<WebRtcLogsUI>; | 558 return &NewWebUI<WebRtcLogsUI>; |
559 #endif | 559 #endif |
560 #if defined(ENABLE_MEDIA_ROUTER) | 560 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) |
561 if (url.host() == chrome::kChromeUIMediaRouterHost && | 561 if (url.host() == chrome::kChromeUIMediaRouterHost && |
562 switches::MediaRouterEnabled()) { | 562 switches::MediaRouterEnabled()) { |
563 return &NewWebUI<media_router::MediaRouterUI>; | 563 return &NewWebUI<media_router::MediaRouterUI>; |
564 } | 564 } |
565 #endif | 565 #endif |
566 if (IsAboutUI(url)) | 566 if (IsAboutUI(url)) |
567 return &NewWebUI<AboutUI>; | 567 return &NewWebUI<AboutUI>; |
568 | 568 |
569 if (IsEnableDomDistillerSet() && | 569 if (IsEnableDomDistillerSet() && |
570 url.host() == dom_distiller::kChromeUIDomDistillerHost) { | 570 url.host() == dom_distiller::kChromeUIDomDistillerHost) { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 #endif | 757 #endif |
758 | 758 |
759 // Android doesn't use the plugins pages. | 759 // Android doesn't use the plugins pages. |
760 if (page_url.host() == chrome::kChromeUIPluginsHost) | 760 if (page_url.host() == chrome::kChromeUIPluginsHost) |
761 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 761 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
762 | 762 |
763 #endif | 763 #endif |
764 | 764 |
765 return NULL; | 765 return NULL; |
766 } | 766 } |
OLD | NEW |