Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2349623003: Add a Browser Task Scheduler Chrome Internals Page (Closed)
Patch Set: Remvoe allowexternalscript Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/task_scheduler_internals/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "chrome/browser/ui/webui/policy_ui.h" 47 #include "chrome/browser/ui/webui/policy_ui.h"
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/task_scheduler_internals/task_scheduler_intern als_ui.h"
57 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" 58 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
58 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h" 59 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h"
59 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 60 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
60 #include "chrome/browser/ui/webui/version_ui.h" 61 #include "chrome/browser/ui/webui/version_ui.h"
61 #include "chrome/common/chrome_features.h" 62 #include "chrome/common/chrome_features.h"
62 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
63 #include "chrome/common/pref_names.h" 64 #include "chrome/common/pref_names.h"
64 #include "chrome/common/url_constants.h" 65 #include "chrome/common/url_constants.h"
65 #include "components/dom_distiller/core/dom_distiller_constants.h" 66 #include "components/dom_distiller/core/dom_distiller_constants.h"
66 #include "components/dom_distiller/core/dom_distiller_features.h" 67 #include "components/dom_distiller/core/dom_distiller_features.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 if (url.host() == chrome::kChromeUISuggestionsHost) 376 if (url.host() == chrome::kChromeUISuggestionsHost)
376 return &NewWebUI<suggestions::SuggestionsUI>; 377 return &NewWebUI<suggestions::SuggestionsUI>;
377 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) 378 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost)
378 return &NewWebUI<SupervisedUserInternalsUI>; 379 return &NewWebUI<SupervisedUserInternalsUI>;
379 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) 380 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost)
380 return &NewWebUI<ConstrainedWebDialogUI>; 381 return &NewWebUI<ConstrainedWebDialogUI>;
381 if (url.host() == chrome::kChromeUISyncInternalsHost) 382 if (url.host() == chrome::kChromeUISyncInternalsHost)
382 return &NewWebUI<SyncInternalsUI>; 383 return &NewWebUI<SyncInternalsUI>;
383 if (url.host() == chrome::kChromeUISyncResourcesHost) 384 if (url.host() == chrome::kChromeUISyncResourcesHost)
384 return &NewWebUI<WebDialogUI>; 385 return &NewWebUI<WebDialogUI>;
386 if (url.host() == chrome::kChromeUITaskSchedulerInternalsHost)
387 return &NewWebUI<TaskSchedulerInternalsUI>;
385 if (url.host() == chrome::kChromeUITranslateInternalsHost) 388 if (url.host() == chrome::kChromeUITranslateInternalsHost)
386 return &NewWebUI<TranslateInternalsUI>; 389 return &NewWebUI<TranslateInternalsUI>;
387 if (url.host() == chrome::kChromeUIUsbInternalsHost) 390 if (url.host() == chrome::kChromeUIUsbInternalsHost)
388 return &NewWebUI<UsbInternalsUI>; 391 return &NewWebUI<UsbInternalsUI>;
389 if (url.host() == chrome::kChromeUIUserActionsHost) 392 if (url.host() == chrome::kChromeUIUserActionsHost)
390 return &NewWebUI<UserActionsUI>; 393 return &NewWebUI<UserActionsUI>;
391 if (url.host() == chrome::kChromeUIVersionHost) 394 if (url.host() == chrome::kChromeUIVersionHost)
392 return &NewWebUI<VersionUI>; 395 return &NewWebUI<VersionUI>;
393 396
394 /**************************************************************************** 397 /****************************************************************************
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 #endif 822 #endif
820 823
821 // Android doesn't use the plugins pages. 824 // Android doesn't use the plugins pages.
822 if (page_url.host() == chrome::kChromeUIPluginsHost) 825 if (page_url.host() == chrome::kChromeUIPluginsHost)
823 return PluginsUI::GetFaviconResourceBytes(scale_factor); 826 return PluginsUI::GetFaviconResourceBytes(scale_factor);
824 827
825 #endif 828 #endif
826 829
827 return NULL; 830 return NULL;
828 } 831 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/task_scheduler_internals/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698