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

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

Issue 12088099: Moving chrome://tracing to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/webui/tracing_ui.h » ('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 "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 28 matching lines...) Expand all
39 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" 39 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
40 #include "chrome/browser/ui/webui/options/options_ui.h" 40 #include "chrome/browser/ui/webui/options/options_ui.h"
41 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h" 41 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h"
42 #include "chrome/browser/ui/webui/plugins_ui.h" 42 #include "chrome/browser/ui/webui/plugins_ui.h"
43 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" 43 #include "chrome/browser/ui/webui/predictors/predictors_ui.h"
44 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 44 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
45 #include "chrome/browser/ui/webui/profiler_ui.h" 45 #include "chrome/browser/ui/webui/profiler_ui.h"
46 #include "chrome/browser/ui/webui/quota_internals_ui.h" 46 #include "chrome/browser/ui/webui/quota_internals_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_internals_ui.h" 48 #include "chrome/browser/ui/webui/sync_internals_ui.h"
49 #include "chrome/browser/ui/webui/tracing_ui.h"
50 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 49 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
51 #include "chrome/browser/ui/webui/version_ui.h" 50 #include "chrome/browser/ui/webui/version_ui.h"
52 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/extensions/extension_constants.h" 52 #include "chrome/common/extensions/extension_constants.h"
54 #include "chrome/common/extensions/feature_switch.h" 53 #include "chrome/common/extensions/feature_switch.h"
55 #include "chrome/common/pref_names.h" 54 #include "chrome/common/pref_names.h"
56 #include "chrome/common/url_constants.h" 55 #include "chrome/common/url_constants.h"
57 #include "content/public/browser/web_contents.h" 56 #include "content/public/browser/web_contents.h"
58 #include "content/public/browser/web_ui.h" 57 #include "content/public/browser/web_ui.h"
59 #include "content/public/common/content_client.h" 58 #include "content/public/common/content_client.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 if (url.host() == chrome::kChromeUIPerformanceMonitorHost) 272 if (url.host() == chrome::kChromeUIPerformanceMonitorHost)
274 return &NewWebUI<performance_monitor::PerformanceMonitorUI>; 273 return &NewWebUI<performance_monitor::PerformanceMonitorUI>;
275 // Android does not support plugins for now. 274 // Android does not support plugins for now.
276 if (url.host() == chrome::kChromeUIPluginsHost) 275 if (url.host() == chrome::kChromeUIPluginsHost)
277 return &NewWebUI<PluginsUI>; 276 return &NewWebUI<PluginsUI>;
278 // Settings are implemented with native UI elements on Android. 277 // Settings are implemented with native UI elements on Android.
279 if (url.host() == chrome::kChromeUISettingsFrameHost) 278 if (url.host() == chrome::kChromeUISettingsFrameHost)
280 return &NewWebUI<options::OptionsUI>; 279 return &NewWebUI<options::OptionsUI>;
281 if (url.host() == chrome::kChromeUISuggestionsInternalsHost) 280 if (url.host() == chrome::kChromeUISuggestionsInternalsHost)
282 return &NewWebUI<SuggestionsInternalsUI>; 281 return &NewWebUI<SuggestionsInternalsUI>;
283 if (url.host() == chrome::kChromeUITracingHost)
284 return &NewWebUI<TracingUI>;
285 // Uber frame is not used on Android. 282 // Uber frame is not used on Android.
286 if (url.host() == chrome::kChromeUIUberFrameHost) 283 if (url.host() == chrome::kChromeUIUberFrameHost)
287 return &NewWebUI<UberFrameUI>; 284 return &NewWebUI<UberFrameUI>;
288 // Uber page is not used on Android. 285 // Uber page is not used on Android.
289 if (url.host() == chrome::kChromeUIUberHost) 286 if (url.host() == chrome::kChromeUIUberHost)
290 return &NewWebUI<UberUI>; 287 return &NewWebUI<UberUI>;
291 #endif 288 #endif
292 #if defined(OS_WIN) 289 #if defined(OS_WIN)
293 if (url.host() == chrome::kChromeUIConflictsHost) 290 if (url.host() == chrome::kChromeUIConflictsHost)
294 return &NewWebUI<ConflictsUI>; 291 return &NewWebUI<ConflictsUI>;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 551 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
555 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 552 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
556 553
557 // Android doesn't use the plugins pages. 554 // Android doesn't use the plugins pages.
558 if (page_url.host() == chrome::kChromeUIPluginsHost) 555 if (page_url.host() == chrome::kChromeUIPluginsHost)
559 return PluginsUI::GetFaviconResourceBytes(scale_factor); 556 return PluginsUI::GetFaviconResourceBytes(scale_factor);
560 #endif 557 #endif
561 558
562 return NULL; 559 return NULL;
563 } 560 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/webui/tracing_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698