| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" | 48 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" |
| 49 #include "chrome/browser/ui/webui/profiler_ui.h" | 49 #include "chrome/browser/ui/webui/profiler_ui.h" |
| 50 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" | 50 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 51 #include "chrome/browser/ui/webui/settings_utils.h" | 51 #include "chrome/browser/ui/webui/settings_utils.h" |
| 52 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" | 52 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" |
| 53 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" | 53 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" |
| 54 #include "chrome/browser/ui/webui/signin_internals_ui.h" | 54 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
| 55 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" | 55 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" |
| 56 #include "chrome/browser/ui/webui/sync_internals_ui.h" | 56 #include "chrome/browser/ui/webui/sync_internals_ui.h" |
| 57 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" | 57 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" |
| 58 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h" |
| 58 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" | 59 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" |
| 59 #include "chrome/browser/ui/webui/version_ui.h" | 60 #include "chrome/browser/ui/webui/version_ui.h" |
| 60 #include "chrome/common/chrome_features.h" | 61 #include "chrome/common/chrome_features.h" |
| 61 #include "chrome/common/chrome_switches.h" | 62 #include "chrome/common/chrome_switches.h" |
| 62 #include "chrome/common/pref_names.h" | 63 #include "chrome/common/pref_names.h" |
| 63 #include "chrome/common/url_constants.h" | 64 #include "chrome/common/url_constants.h" |
| 64 #include "components/dom_distiller/core/dom_distiller_constants.h" | 65 #include "components/dom_distiller/core/dom_distiller_constants.h" |
| 65 #include "components/dom_distiller/core/dom_distiller_features.h" | 66 #include "components/dom_distiller/core/dom_distiller_features.h" |
| 66 #include "components/dom_distiller/core/dom_distiller_service.h" | 67 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 67 #include "components/dom_distiller/core/url_constants.h" | 68 #include "components/dom_distiller/core/url_constants.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) | 370 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) |
| 370 return &NewWebUI<SupervisedUserInternalsUI>; | 371 return &NewWebUI<SupervisedUserInternalsUI>; |
| 371 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) | 372 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) |
| 372 return &NewWebUI<ConstrainedWebDialogUI>; | 373 return &NewWebUI<ConstrainedWebDialogUI>; |
| 373 if (url.host() == chrome::kChromeUISyncInternalsHost) | 374 if (url.host() == chrome::kChromeUISyncInternalsHost) |
| 374 return &NewWebUI<SyncInternalsUI>; | 375 return &NewWebUI<SyncInternalsUI>; |
| 375 if (url.host() == chrome::kChromeUISyncResourcesHost) | 376 if (url.host() == chrome::kChromeUISyncResourcesHost) |
| 376 return &NewWebUI<WebDialogUI>; | 377 return &NewWebUI<WebDialogUI>; |
| 377 if (url.host() == chrome::kChromeUITranslateInternalsHost) | 378 if (url.host() == chrome::kChromeUITranslateInternalsHost) |
| 378 return &NewWebUI<TranslateInternalsUI>; | 379 return &NewWebUI<TranslateInternalsUI>; |
| 380 if (url.host() == chrome::kChromeUIUsbInternalsHost) |
| 381 return &NewWebUI<UsbInternalsUI>; |
| 379 if (url.host() == chrome::kChromeUIUserActionsHost) | 382 if (url.host() == chrome::kChromeUIUserActionsHost) |
| 380 return &NewWebUI<UserActionsUI>; | 383 return &NewWebUI<UserActionsUI>; |
| 381 if (url.host() == chrome::kChromeUIVersionHost) | 384 if (url.host() == chrome::kChromeUIVersionHost) |
| 382 return &NewWebUI<VersionUI>; | 385 return &NewWebUI<VersionUI>; |
| 383 | 386 |
| 384 /**************************************************************************** | 387 /**************************************************************************** |
| 385 * OS Specific #defines | 388 * OS Specific #defines |
| 386 ***************************************************************************/ | 389 ***************************************************************************/ |
| 387 #if !defined(OS_ANDROID) | 390 #if !defined(OS_ANDROID) |
| 388 #if !defined(OS_CHROMEOS) | 391 #if !defined(OS_CHROMEOS) |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 #endif | 812 #endif |
| 810 | 813 |
| 811 // Android doesn't use the plugins pages. | 814 // Android doesn't use the plugins pages. |
| 812 if (page_url.host() == chrome::kChromeUIPluginsHost) | 815 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 813 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 816 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 814 | 817 |
| 815 #endif | 818 #endif |
| 816 | 819 |
| 817 return NULL; | 820 return NULL; |
| 818 } | 821 } |
| OLD | NEW |