| 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 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/about_flags.h" | 15 #include "chrome/browser/about_flags.h" |
| 16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 17 #include "chrome/browser/engagement/site_engagement_service.h" | 17 #include "chrome/browser/engagement/site_engagement_service.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
| 20 #include "chrome/browser/search/suggestions/suggestions_ui.h" |
| 20 #include "chrome/browser/ui/webui/about_ui.h" | 21 #include "chrome/browser/ui/webui/about_ui.h" |
| 21 #include "chrome/browser/ui/webui/bookmarks_ui.h" | 22 #include "chrome/browser/ui/webui/bookmarks_ui.h" |
| 22 #include "chrome/browser/ui/webui/components_ui.h" | 23 #include "chrome/browser/ui/webui/components_ui.h" |
| 23 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" | 24 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" |
| 24 #include "chrome/browser/ui/webui/crashes_ui.h" | 25 #include "chrome/browser/ui/webui/crashes_ui.h" |
| 25 #include "chrome/browser/ui/webui/device_log_ui.h" | 26 #include "chrome/browser/ui/webui/device_log_ui.h" |
| 26 #include "chrome/browser/ui/webui/domain_reliability_internals_ui.h" | 27 #include "chrome/browser/ui/webui/domain_reliability_internals_ui.h" |
| 27 #include "chrome/browser/ui/webui/engagement/site_engagement_ui.h" | 28 #include "chrome/browser/ui/webui/engagement/site_engagement_ui.h" |
| 28 #include "chrome/browser/ui/webui/flags_ui.h" | 29 #include "chrome/browser/ui/webui/flags_ui.h" |
| 29 #include "chrome/browser/ui/webui/flash_ui.h" | 30 #include "chrome/browser/ui/webui/flash_ui.h" |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 if (url.host() == chrome::kChromeUIOmniboxHost) | 340 if (url.host() == chrome::kChromeUIOmniboxHost) |
| 340 return &NewWebUI<OmniboxUI>; | 341 return &NewWebUI<OmniboxUI>; |
| 341 if (url.host() == chrome::kChromeUIPasswordManagerInternalsHost) | 342 if (url.host() == chrome::kChromeUIPasswordManagerInternalsHost) |
| 342 return &NewWebUI<PasswordManagerInternalsUI>; | 343 return &NewWebUI<PasswordManagerInternalsUI>; |
| 343 if (url.host() == chrome::kChromeUIPredictorsHost) | 344 if (url.host() == chrome::kChromeUIPredictorsHost) |
| 344 return &NewWebUI<PredictorsUI>; | 345 return &NewWebUI<PredictorsUI>; |
| 345 if (url.host() == chrome::kChromeUIProfilerHost) | 346 if (url.host() == chrome::kChromeUIProfilerHost) |
| 346 return &NewWebUI<ProfilerUI>; | 347 return &NewWebUI<ProfilerUI>; |
| 347 if (url.host() == chrome::kChromeUISignInInternalsHost) | 348 if (url.host() == chrome::kChromeUISignInInternalsHost) |
| 348 return &NewWebUI<SignInInternalsUI>; | 349 return &NewWebUI<SignInInternalsUI>; |
| 350 if (url.host() == chrome::kChromeUISuggestionsHost) |
| 351 return &NewWebUI<suggestions::SuggestionsUI>; |
| 349 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) | 352 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) |
| 350 return &NewWebUI<SupervisedUserInternalsUI>; | 353 return &NewWebUI<SupervisedUserInternalsUI>; |
| 351 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) | 354 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) |
| 352 return &NewWebUI<ConstrainedWebDialogUI>; | 355 return &NewWebUI<ConstrainedWebDialogUI>; |
| 353 if (url.host() == chrome::kChromeUISyncInternalsHost) | 356 if (url.host() == chrome::kChromeUISyncInternalsHost) |
| 354 return &NewWebUI<SyncInternalsUI>; | 357 return &NewWebUI<SyncInternalsUI>; |
| 355 if (url.host() == chrome::kChromeUISyncResourcesHost) | 358 if (url.host() == chrome::kChromeUISyncResourcesHost) |
| 356 return &NewWebUI<WebDialogUI>; | 359 return &NewWebUI<WebDialogUI>; |
| 357 if (url.host() == chrome::kChromeUITranslateInternalsHost) | 360 if (url.host() == chrome::kChromeUITranslateInternalsHost) |
| 358 return &NewWebUI<TranslateInternalsUI>; | 361 return &NewWebUI<TranslateInternalsUI>; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 #endif | 773 #endif |
| 771 | 774 |
| 772 // Android doesn't use the plugins pages. | 775 // Android doesn't use the plugins pages. |
| 773 if (page_url.host() == chrome::kChromeUIPluginsHost) | 776 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 774 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 777 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 775 | 778 |
| 776 #endif | 779 #endif |
| 777 | 780 |
| 778 return NULL; | 781 return NULL; |
| 779 } | 782 } |
| OLD | NEW |