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

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: tzik review #1 Created 7 years, 8 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/user_actions/user_actions_ui.h" 50 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
50 #include "chrome/browser/ui/webui/version_ui.h" 51 #include "chrome/browser/ui/webui/version_ui.h"
51 #include "chrome/common/chrome_switches.h" 52 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/extensions/extension_constants.h" 53 #include "chrome/common/extensions/extension_constants.h"
53 #include "chrome/common/extensions/feature_switch.h" 54 #include "chrome/common/extensions/feature_switch.h"
54 #include "chrome/common/pref_names.h" 55 #include "chrome/common/pref_names.h"
55 #include "chrome/common/url_constants.h" 56 #include "chrome/common/url_constants.h"
56 #include "content/public/browser/web_contents.h" 57 #include "content/public/browser/web_contents.h"
57 #include "content/public/browser/web_ui.h" 58 #include "content/public/browser/web_ui.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (url.host() == chrome::kChromeUIOmniboxHost) 231 if (url.host() == chrome::kChromeUIOmniboxHost)
231 return &NewWebUI<OmniboxUI>; 232 return &NewWebUI<OmniboxUI>;
232 if (url.host() == chrome::kChromeUIPredictorsHost) 233 if (url.host() == chrome::kChromeUIPredictorsHost)
233 return &NewWebUI<PredictorsUI>; 234 return &NewWebUI<PredictorsUI>;
234 if (url.host() == chrome::kChromeUIProfilerHost) 235 if (url.host() == chrome::kChromeUIProfilerHost)
235 return &NewWebUI<ProfilerUI>; 236 return &NewWebUI<ProfilerUI>;
236 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 237 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
237 return &NewWebUI<QuotaInternalsUI>; 238 return &NewWebUI<QuotaInternalsUI>;
238 if (url.host() == chrome::kChromeUISignInInternalsHost) 239 if (url.host() == chrome::kChromeUISignInInternalsHost)
239 return &NewWebUI<SignInInternalsUI>; 240 return &NewWebUI<SignInInternalsUI>;
241 if (url.host() == chrome::kChromeUISyncFileSystemInternalsHost)
242 return &NewWebUI<SyncFileSystemInternalsUI>;
240 if (url.host() == chrome::kChromeUISyncInternalsHost) 243 if (url.host() == chrome::kChromeUISyncInternalsHost)
241 return &NewWebUI<SyncInternalsUI>; 244 return &NewWebUI<SyncInternalsUI>;
242 if (url.host() == chrome::kChromeUISyncResourcesHost) 245 if (url.host() == chrome::kChromeUISyncResourcesHost)
243 return &NewWebUI<WebDialogUI>; 246 return &NewWebUI<WebDialogUI>;
244 if (url.host() == chrome::kChromeUIUserActionsHost) 247 if (url.host() == chrome::kChromeUIUserActionsHost)
245 return &NewWebUI<UserActionsUI>; 248 return &NewWebUI<UserActionsUI>;
246 if (url.host() == chrome::kChromeUIVersionHost) 249 if (url.host() == chrome::kChromeUIVersionHost)
247 return &NewWebUI<VersionUI>; 250 return &NewWebUI<VersionUI>;
248 251
249 /**************************************************************************** 252 /****************************************************************************
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 577 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
575 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 578 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
576 579
577 // Android doesn't use the plugins pages. 580 // Android doesn't use the plugins pages.
578 if (page_url.host() == chrome::kChromeUIPluginsHost) 581 if (page_url.host() == chrome::kChromeUIPluginsHost)
579 return PluginsUI::GetFaviconResourceBytes(scale_factor); 582 return PluginsUI::GetFaviconResourceBytes(scale_factor);
580 #endif 583 #endif
581 584
582 return NULL; 585 return NULL;
583 } 586 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698