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

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

Issue 14084008: Boilerplate code to add chrome://syncfs-internals page for debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase with similarity=20 Created 7 years, 7 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 27 matching lines...) Expand all
38 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" 38 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
39 #include "chrome/browser/ui/webui/options/options_ui.h" 39 #include "chrome/browser/ui/webui/options/options_ui.h"
40 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h" 40 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h"
41 #include "chrome/browser/ui/webui/plugins_ui.h" 41 #include "chrome/browser/ui/webui/plugins_ui.h"
42 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" 42 #include "chrome/browser/ui/webui/predictors/predictors_ui.h"
43 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 43 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
44 #include "chrome/browser/ui/webui/profiler_ui.h" 44 #include "chrome/browser/ui/webui/profiler_ui.h"
45 #include "chrome/browser/ui/webui/quota_internals_ui.h" 45 #include "chrome/browser/ui/webui/quota_internals_ui.h"
46 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" 46 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h"
47 #include "chrome/browser/ui/webui/signin_internals_ui.h" 47 #include "chrome/browser/ui/webui/signin_internals_ui.h"
48 #include "chrome/browser/ui/webui/sync_file_system_internals_ui.h"
48 #include "chrome/browser/ui/webui/sync_internals_ui.h" 49 #include "chrome/browser/ui/webui/sync_internals_ui.h"
49 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" 50 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
50 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 51 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
51 #include "chrome/browser/ui/webui/version_ui.h" 52 #include "chrome/browser/ui/webui/version_ui.h"
52 #include "chrome/common/chrome_switches.h" 53 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/extensions/extension_constants.h" 54 #include "chrome/common/extensions/extension_constants.h"
54 #include "chrome/common/extensions/feature_switch.h" 55 #include "chrome/common/extensions/feature_switch.h"
55 #include "chrome/common/pref_names.h" 56 #include "chrome/common/pref_names.h"
56 #include "chrome/common/url_constants.h" 57 #include "chrome/common/url_constants.h"
57 #include "content/public/browser/web_contents.h" 58 #include "content/public/browser/web_contents.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 if (url.host() == chrome::kChromeUIOmniboxHost) 233 if (url.host() == chrome::kChromeUIOmniboxHost)
233 return &NewWebUI<OmniboxUI>; 234 return &NewWebUI<OmniboxUI>;
234 if (url.host() == chrome::kChromeUIPredictorsHost) 235 if (url.host() == chrome::kChromeUIPredictorsHost)
235 return &NewWebUI<PredictorsUI>; 236 return &NewWebUI<PredictorsUI>;
236 if (url.host() == chrome::kChromeUIProfilerHost) 237 if (url.host() == chrome::kChromeUIProfilerHost)
237 return &NewWebUI<ProfilerUI>; 238 return &NewWebUI<ProfilerUI>;
238 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 239 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
239 return &NewWebUI<QuotaInternalsUI>; 240 return &NewWebUI<QuotaInternalsUI>;
240 if (url.host() == chrome::kChromeUISignInInternalsHost) 241 if (url.host() == chrome::kChromeUISignInInternalsHost)
241 return &NewWebUI<SignInInternalsUI>; 242 return &NewWebUI<SignInInternalsUI>;
243 if (url.host() == chrome::kChromeUISyncFileSystemInternalsHost)
244 return &NewWebUI<SyncFileSystemInternalsUI>;
242 if (url.host() == chrome::kChromeUISyncInternalsHost) 245 if (url.host() == chrome::kChromeUISyncInternalsHost)
243 return &NewWebUI<SyncInternalsUI>; 246 return &NewWebUI<SyncInternalsUI>;
244 if (url.host() == chrome::kChromeUISyncResourcesHost) 247 if (url.host() == chrome::kChromeUISyncResourcesHost)
245 return &NewWebUI<WebDialogUI>; 248 return &NewWebUI<WebDialogUI>;
246 if (url.host() == chrome::kChromeUITranslateInternalsHost) 249 if (url.host() == chrome::kChromeUITranslateInternalsHost)
247 return &NewWebUI<TranslateInternalsUI>; 250 return &NewWebUI<TranslateInternalsUI>;
248 if (url.host() == chrome::kChromeUIUserActionsHost) 251 if (url.host() == chrome::kChromeUIUserActionsHost)
249 return &NewWebUI<UserActionsUI>; 252 return &NewWebUI<UserActionsUI>;
250 if (url.host() == chrome::kChromeUIVersionHost) 253 if (url.host() == chrome::kChromeUIVersionHost)
251 return &NewWebUI<VersionUI>; 254 return &NewWebUI<VersionUI>;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 583 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
581 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 584 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
582 585
583 // Android doesn't use the plugins pages. 586 // Android doesn't use the plugins pages.
584 if (page_url.host() == chrome::kChromeUIPluginsHost) 587 if (page_url.host() == chrome::kChromeUIPluginsHost)
585 return PluginsUI::GetFaviconResourceBytes(scale_factor); 588 return PluginsUI::GetFaviconResourceBytes(scale_factor);
586 #endif 589 #endif
587 590
588 return NULL; 591 return NULL;
589 } 592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698