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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #include "components/favicon/core/favicon_service.h" | 73 #include "components/favicon/core/favicon_service.h" |
74 #include "components/favicon_base/favicon_util.h" | 74 #include "components/favicon_base/favicon_util.h" |
75 #include "components/favicon_base/select_favicon_frames.h" | 75 #include "components/favicon_base/select_favicon_frames.h" |
76 #include "components/history/core/browser/history_types.h" | 76 #include "components/history/core/browser/history_types.h" |
77 #include "components/prefs/pref_service.h" | 77 #include "components/prefs/pref_service.h" |
78 #include "components/signin/core/common/profile_management_switches.h" | 78 #include "components/signin/core/common/profile_management_switches.h" |
79 #include "content/public/browser/web_contents.h" | 79 #include "content/public/browser/web_contents.h" |
80 #include "content/public/browser/web_ui.h" | 80 #include "content/public/browser/web_ui.h" |
81 #include "content/public/common/content_client.h" | 81 #include "content/public/common/content_client.h" |
82 #include "content/public/common/url_utils.h" | 82 #include "content/public/common/url_utils.h" |
| 83 #include "printing/features/features.h" |
83 #include "ui/gfx/favicon_size.h" | 84 #include "ui/gfx/favicon_size.h" |
84 #include "ui/web_dialogs/web_dialog_ui.h" | 85 #include "ui/web_dialogs/web_dialog_ui.h" |
85 #include "url/gurl.h" | 86 #include "url/gurl.h" |
86 | 87 |
87 #if !defined(DISABLE_NACL) | 88 #if !defined(DISABLE_NACL) |
88 #include "chrome/browser/ui/webui/nacl_ui.h" | 89 #include "chrome/browser/ui/webui/nacl_ui.h" |
89 #endif | 90 #endif |
90 | 91 |
91 #if defined(ENABLE_WEBRTC) | 92 #if defined(ENABLE_WEBRTC) |
92 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" | 93 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" |
93 #endif | 94 #endif |
94 | 95 |
95 #if defined(ENABLE_PRINT_PREVIEW) | 96 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
96 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 97 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
97 #endif | 98 #endif |
98 | 99 |
99 #if defined(ENABLE_MEDIA_ROUTER) | 100 #if defined(ENABLE_MEDIA_ROUTER) |
100 #if !defined(OS_ANDROID) | 101 #if !defined(OS_ANDROID) |
101 #include "chrome/browser/media/router/media_router_feature.h" | 102 #include "chrome/browser/media/router/media_router_feature.h" |
102 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" | 103 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" |
103 #endif | 104 #endif |
104 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 105 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
105 #include "chrome/browser/ui/webui/cast/cast_ui.h" | 106 #include "chrome/browser/ui/webui/cast/cast_ui.h" |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 #if defined(ENABLE_EXTENSIONS) | 611 #if defined(ENABLE_EXTENSIONS) |
611 if (url.host() == chrome::kChromeUIExtensionsFrameHost) | 612 if (url.host() == chrome::kChromeUIExtensionsFrameHost) |
612 return &NewWebUI<extensions::ExtensionsUI>; | 613 return &NewWebUI<extensions::ExtensionsUI>; |
613 #endif | 614 #endif |
614 #if defined(ENABLE_PLUGINS) | 615 #if defined(ENABLE_PLUGINS) |
615 if (url.host() == chrome::kChromeUIFlashHost) | 616 if (url.host() == chrome::kChromeUIFlashHost) |
616 return &NewWebUI<FlashUI>; | 617 return &NewWebUI<FlashUI>; |
617 if (url.host() == chrome::kChromeUIPluginsHost) | 618 if (url.host() == chrome::kChromeUIPluginsHost) |
618 return &NewWebUI<PluginsUI>; | 619 return &NewWebUI<PluginsUI>; |
619 #endif | 620 #endif |
620 #if defined(ENABLE_PRINT_PREVIEW) | 621 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
621 if (url.host() == chrome::kChromeUIPrintHost && | 622 if (url.host() == chrome::kChromeUIPrintHost && |
622 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { | 623 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { |
623 return &NewWebUI<PrintPreviewUI>; | 624 return &NewWebUI<PrintPreviewUI>; |
624 } | 625 } |
625 #endif | 626 #endif |
626 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 627 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
627 if (url.host() == chrome::kChromeUIDevicesHost) { | 628 if (url.host() == chrome::kChromeUIDevicesHost) { |
628 return &NewWebUI<LocalDiscoveryUI>; | 629 return &NewWebUI<LocalDiscoveryUI>; |
629 } | 630 } |
630 #endif | 631 #endif |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 #endif | 849 #endif |
849 | 850 |
850 // Android doesn't use the plugins pages. | 851 // Android doesn't use the plugins pages. |
851 if (page_url.host() == chrome::kChromeUIPluginsHost) | 852 if (page_url.host() == chrome::kChromeUIPluginsHost) |
852 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 853 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
853 | 854 |
854 #endif | 855 #endif |
855 | 856 |
856 return NULL; | 857 return NULL; |
857 } | 858 } |
OLD | NEW |