| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "components/dom_distiller/core/dom_distiller_constants.h" | 67 #include "components/dom_distiller/core/dom_distiller_constants.h" |
| 68 #include "components/dom_distiller/core/dom_distiller_features.h" | 68 #include "components/dom_distiller/core/dom_distiller_features.h" |
| 69 #include "components/dom_distiller/core/dom_distiller_service.h" | 69 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 70 #include "components/dom_distiller/core/url_constants.h" | 70 #include "components/dom_distiller/core/url_constants.h" |
| 71 #include "components/dom_distiller/webui/dom_distiller_ui.h" | 71 #include "components/dom_distiller/webui/dom_distiller_ui.h" |
| 72 #include "components/favicon/core/favicon_service.h" | 72 #include "components/favicon/core/favicon_service.h" |
| 73 #include "components/favicon_base/favicon_util.h" | 73 #include "components/favicon_base/favicon_util.h" |
| 74 #include "components/favicon_base/select_favicon_frames.h" | 74 #include "components/favicon_base/select_favicon_frames.h" |
| 75 #include "components/history/core/browser/history_types.h" | 75 #include "components/history/core/browser/history_types.h" |
| 76 #include "components/prefs/pref_service.h" | 76 #include "components/prefs/pref_service.h" |
| 77 #include "components/safe_browsing/web_ui/constants.h" |
| 78 #include "components/safe_browsing/web_ui/safe_browsing_ui.h" |
| 77 #include "components/signin/core/common/profile_management_switches.h" | 79 #include "components/signin/core/common/profile_management_switches.h" |
| 78 #include "components/signin/core/common/signin_features.h" | 80 #include "components/signin/core/common/signin_features.h" |
| 79 #include "content/public/browser/web_contents.h" | 81 #include "content/public/browser/web_contents.h" |
| 80 #include "content/public/browser/web_ui.h" | 82 #include "content/public/browser/web_ui.h" |
| 81 #include "content/public/common/content_client.h" | 83 #include "content/public/common/content_client.h" |
| 82 #include "content/public/common/url_utils.h" | 84 #include "content/public/common/url_utils.h" |
| 83 #include "extensions/features/features.h" | 85 #include "extensions/features/features.h" |
| 84 #include "media/media_features.h" | 86 #include "media/media_features.h" |
| 85 #include "ppapi/features/features.h" | 87 #include "ppapi/features/features.h" |
| 86 #include "printing/features/features.h" | 88 #include "printing/features/features.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 if (url.host_piece() == chrome::kChromeUIPasswordManagerInternalsHost) | 363 if (url.host_piece() == chrome::kChromeUIPasswordManagerInternalsHost) |
| 362 return &NewWebUI<PasswordManagerInternalsUI>; | 364 return &NewWebUI<PasswordManagerInternalsUI>; |
| 363 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost) | 365 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost) |
| 364 return &NewWebUI<PhysicalWebUI>; | 366 return &NewWebUI<PhysicalWebUI>; |
| 365 if (url.host_piece() == chrome::kChromeUIPredictorsHost) | 367 if (url.host_piece() == chrome::kChromeUIPredictorsHost) |
| 366 return &NewWebUI<PredictorsUI>; | 368 return &NewWebUI<PredictorsUI>; |
| 367 if (url.host_piece() == chrome::kChromeUIProfilerHost) | 369 if (url.host_piece() == chrome::kChromeUIProfilerHost) |
| 368 return &NewWebUI<ProfilerUI>; | 370 return &NewWebUI<ProfilerUI>; |
| 369 if (url.host() == chrome::kChromeUIQuotaInternalsHost) | 371 if (url.host() == chrome::kChromeUIQuotaInternalsHost) |
| 370 return &NewWebUI<QuotaInternalsUI>; | 372 return &NewWebUI<QuotaInternalsUI>; |
| 373 if (url.host() == safe_browsing::kChromeUISafeBrowsingHost) |
| 374 return &NewWebUI<SafeBrowsingUI>; |
| 371 if (url.host() == chrome::kChromeUISignInInternalsHost) | 375 if (url.host() == chrome::kChromeUISignInInternalsHost) |
| 372 return &NewWebUI<SignInInternalsUI>; | 376 return &NewWebUI<SignInInternalsUI>; |
| 373 if (url.host_piece() == chrome::kChromeUISuggestionsHost) | 377 if (url.host_piece() == chrome::kChromeUISuggestionsHost) |
| 374 return &NewWebUI<suggestions::SuggestionsUI>; | 378 return &NewWebUI<suggestions::SuggestionsUI>; |
| 375 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost) | 379 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost) |
| 376 return &NewWebUI<SupervisedUserInternalsUI>; | 380 return &NewWebUI<SupervisedUserInternalsUI>; |
| 377 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost) | 381 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost) |
| 378 return &NewWebUI<ConstrainedWebDialogUI>; | 382 return &NewWebUI<ConstrainedWebDialogUI>; |
| 379 if (url.host_piece() == chrome::kChromeUISyncInternalsHost) | 383 if (url.host_piece() == chrome::kChromeUISyncInternalsHost) |
| 380 return &NewWebUI<SyncInternalsUI>; | 384 return &NewWebUI<SyncInternalsUI>; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 | 809 |
| 806 #if BUILDFLAG(ENABLE_EXTENSIONS) | 810 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 807 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || | 811 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || |
| 808 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) | 812 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) |
| 809 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 813 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 810 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 814 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 811 #endif // !defined(OS_ANDROID) | 815 #endif // !defined(OS_ANDROID) |
| 812 | 816 |
| 813 return NULL; | 817 return NULL; |
| 814 } | 818 } |
| OLD | NEW |