| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "chrome/browser/ui/webui/signin_internals_ui.h" | 55 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
| 56 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" | 56 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" |
| 57 #include "chrome/browser/ui/webui/sync_internals_ui.h" | 57 #include "chrome/browser/ui/webui/sync_internals_ui.h" |
| 58 #include "chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_intern
als_ui.h" | 58 #include "chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_intern
als_ui.h" |
| 59 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" | 59 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" |
| 60 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h" | 60 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h" |
| 61 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" | 61 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" |
| 62 #include "chrome/browser/ui/webui/version_ui.h" | 62 #include "chrome/browser/ui/webui/version_ui.h" |
| 63 #include "chrome/common/chrome_features.h" | 63 #include "chrome/common/chrome_features.h" |
| 64 #include "chrome/common/chrome_switches.h" | 64 #include "chrome/common/chrome_switches.h" |
| 65 #include "chrome/common/features.h" |
| 65 #include "chrome/common/pref_names.h" | 66 #include "chrome/common/pref_names.h" |
| 66 #include "chrome/common/url_constants.h" | 67 #include "chrome/common/url_constants.h" |
| 67 #include "components/dom_distiller/core/dom_distiller_constants.h" | 68 #include "components/dom_distiller/core/dom_distiller_constants.h" |
| 68 #include "components/dom_distiller/core/dom_distiller_features.h" | 69 #include "components/dom_distiller/core/dom_distiller_features.h" |
| 69 #include "components/dom_distiller/core/dom_distiller_service.h" | 70 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 70 #include "components/dom_distiller/core/url_constants.h" | 71 #include "components/dom_distiller/core/url_constants.h" |
| 71 #include "components/dom_distiller/webui/dom_distiller_ui.h" | 72 #include "components/dom_distiller/webui/dom_distiller_ui.h" |
| 72 #include "components/favicon/core/favicon_service.h" | 73 #include "components/favicon/core/favicon_service.h" |
| 73 #include "components/favicon_base/favicon_util.h" | 74 #include "components/favicon_base/favicon_util.h" |
| 74 #include "components/favicon_base/select_favicon_frames.h" | 75 #include "components/favicon_base/select_favicon_frames.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 170 |
| 170 #if defined(OS_WIN) | 171 #if defined(OS_WIN) |
| 171 #include "chrome/browser/ui/webui/conflicts_ui.h" | 172 #include "chrome/browser/ui/webui/conflicts_ui.h" |
| 172 #include "chrome/browser/ui/webui/set_as_default_browser_ui_win.h" | 173 #include "chrome/browser/ui/webui/set_as_default_browser_ui_win.h" |
| 173 #endif | 174 #endif |
| 174 | 175 |
| 175 #if (defined(USE_NSS_CERTS) || defined(USE_OPENSSL_CERTS)) && defined(USE_AURA) | 176 #if (defined(USE_NSS_CERTS) || defined(USE_OPENSSL_CERTS)) && defined(USE_AURA) |
| 176 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" | 177 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" |
| 177 #endif | 178 #endif |
| 178 | 179 |
| 179 #if defined(ENABLE_SERVICE_DISCOVERY) | 180 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 180 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 181 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
| 181 #endif | 182 #endif |
| 182 | 183 |
| 183 #if defined(ENABLE_APP_LIST) | 184 #if defined(ENABLE_APP_LIST) |
| 184 #include "chrome/browser/ui/webui/app_list/start_page_ui.h" | 185 #include "chrome/browser/ui/webui/app_list/start_page_ui.h" |
| 185 #endif | 186 #endif |
| 186 | 187 |
| 187 #if defined(ENABLE_EXTENSIONS) | 188 #if defined(ENABLE_EXTENSIONS) |
| 188 #include "chrome/browser/extensions/extension_web_ui.h" | 189 #include "chrome/browser/extensions/extension_web_ui.h" |
| 189 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" | 190 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 return &NewWebUI<FlashUI>; | 604 return &NewWebUI<FlashUI>; |
| 604 if (url.host() == chrome::kChromeUIPluginsHost) | 605 if (url.host() == chrome::kChromeUIPluginsHost) |
| 605 return &NewWebUI<PluginsUI>; | 606 return &NewWebUI<PluginsUI>; |
| 606 #endif | 607 #endif |
| 607 #if defined(ENABLE_PRINT_PREVIEW) | 608 #if defined(ENABLE_PRINT_PREVIEW) |
| 608 if (url.host() == chrome::kChromeUIPrintHost && | 609 if (url.host() == chrome::kChromeUIPrintHost && |
| 609 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { | 610 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { |
| 610 return &NewWebUI<PrintPreviewUI>; | 611 return &NewWebUI<PrintPreviewUI>; |
| 611 } | 612 } |
| 612 #endif | 613 #endif |
| 613 #if defined(ENABLE_SERVICE_DISCOVERY) | 614 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 614 if (url.host() == chrome::kChromeUIDevicesHost) { | 615 if (url.host() == chrome::kChromeUIDevicesHost) { |
| 615 return &NewWebUI<LocalDiscoveryUI>; | 616 return &NewWebUI<LocalDiscoveryUI>; |
| 616 } | 617 } |
| 617 #endif | 618 #endif |
| 618 #if defined(ENABLE_WEBRTC) | 619 #if defined(ENABLE_WEBRTC) |
| 619 if (url.host() == chrome::kChromeUIWebRtcLogsHost) | 620 if (url.host() == chrome::kChromeUIWebRtcLogsHost) |
| 620 return &NewWebUI<WebRtcLogsUI>; | 621 return &NewWebUI<WebRtcLogsUI>; |
| 621 #endif | 622 #endif |
| 622 #if defined(ENABLE_MEDIA_ROUTER) | 623 #if defined(ENABLE_MEDIA_ROUTER) |
| 623 #if !defined(OS_ANDROID) | 624 #if !defined(OS_ANDROID) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 #endif | 836 #endif |
| 836 | 837 |
| 837 // Android doesn't use the plugins pages. | 838 // Android doesn't use the plugins pages. |
| 838 if (page_url.host() == chrome::kChromeUIPluginsHost) | 839 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 839 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 840 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 840 | 841 |
| 841 #endif | 842 #endif |
| 842 | 843 |
| 843 return NULL; | 844 return NULL; |
| 844 } | 845 } |
| OLD | NEW |