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

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

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/about_flags.h" 8 #include "chrome/browser/about_flags.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_web_ui.h" 10 #include "chrome/browser/extensions/extension_web_ui.h"
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/ui/webui/net_internals_ui.h" 29 #include "chrome/browser/ui/webui/net_internals_ui.h"
30 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 30 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
31 #include "chrome/browser/ui/webui/options/options_ui.h" 31 #include "chrome/browser/ui/webui/options/options_ui.h"
32 #include "chrome/browser/ui/webui/plugins_ui.h" 32 #include "chrome/browser/ui/webui/plugins_ui.h"
33 #include "chrome/browser/ui/webui/print_preview_ui.h" 33 #include "chrome/browser/ui/webui/print_preview_ui.h"
34 #include "chrome/browser/ui/webui/quota_internals_ui.h" 34 #include "chrome/browser/ui/webui/quota_internals_ui.h"
35 #include "chrome/browser/ui/webui/sessions_ui.h" 35 #include "chrome/browser/ui/webui/sessions_ui.h"
36 #include "chrome/browser/ui/webui/sync_internals_ui.h" 36 #include "chrome/browser/ui/webui/sync_internals_ui.h"
37 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h" 37 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h"
38 #include "chrome/browser/ui/webui/textfields_ui.h" 38 #include "chrome/browser/ui/webui/textfields_ui.h"
39 #include "chrome/browser/ui/webui/tracing_ui.h"
39 #include "chrome/browser/ui/webui/workers_ui.h" 40 #include "chrome/browser/ui/webui/workers_ui.h"
40 #include "chrome/common/chrome_switches.h" 41 #include "chrome/common/chrome_switches.h"
41 #include "chrome/common/extensions/extension_constants.h" 42 #include "chrome/common/extensions/extension_constants.h"
42 #include "chrome/common/url_constants.h" 43 #include "chrome/common/url_constants.h"
43 #include "content/browser/tab_contents/tab_contents.h" 44 #include "content/browser/tab_contents/tab_contents.h"
44 #include "content/browser/webui/web_ui.h" 45 #include "content/browser/webui/web_ui.h"
45 #include "googleurl/src/gurl.h" 46 #include "googleurl/src/gurl.h"
46 47
47 #if defined(OS_CHROMEOS) 48 #if defined(OS_CHROMEOS)
48 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 49 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 if (url.host() == chrome::kChromeUINetInternalsHost) 185 if (url.host() == chrome::kChromeUINetInternalsHost)
185 return &NewWebUI<NetInternalsUI>; 186 return &NewWebUI<NetInternalsUI>;
186 if (url.host() == chrome::kChromeUIPluginsHost) 187 if (url.host() == chrome::kChromeUIPluginsHost)
187 return &NewWebUI<PluginsUI>; 188 return &NewWebUI<PluginsUI>;
188 if (url.host() == chrome::kChromeUISessionsHost) 189 if (url.host() == chrome::kChromeUISessionsHost)
189 return &NewWebUI<SessionsUI>; 190 return &NewWebUI<SessionsUI>;
190 if (url.host() == chrome::kChromeUISyncInternalsHost) 191 if (url.host() == chrome::kChromeUISyncInternalsHost)
191 return &NewWebUI<SyncInternalsUI>; 192 return &NewWebUI<SyncInternalsUI>;
192 if (url.host() == chrome::kChromeUISettingsHost) 193 if (url.host() == chrome::kChromeUISettingsHost)
193 return &NewWebUI<OptionsUI>; 194 return &NewWebUI<OptionsUI>;
195 if (url.host() == chrome::kChromeUITracingHost)
196 return &NewWebUI<TracingUI>;
194 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 197 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
195 return &NewWebUI<QuotaInternalsUI>; 198 return &NewWebUI<QuotaInternalsUI>;
196 if (url.host() == chrome::kChromeUIWorkersHost) 199 if (url.host() == chrome::kChromeUIWorkersHost)
197 return &NewWebUI<WorkersUI>; 200 return &NewWebUI<WorkersUI>;
198 201
199 #if defined(OS_CHROMEOS) 202 #if defined(OS_CHROMEOS)
200 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 203 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
201 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 204 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
202 if (url.host() == chrome::kChromeUICollectedCookiesHost || 205 if (url.host() == chrome::kChromeUICollectedCookiesHost ||
203 url.host() == chrome::kChromeUIHttpAuthHost) { 206 url.host() == chrome::kChromeUIHttpAuthHost) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 return FlashUI::GetFaviconResourceBytes(); 383 return FlashUI::GetFaviconResourceBytes();
381 384
382 if (page_url.host() == chrome::kChromeUISettingsHost) 385 if (page_url.host() == chrome::kChromeUISettingsHost)
383 return OptionsUI::GetFaviconResourceBytes(); 386 return OptionsUI::GetFaviconResourceBytes();
384 387
385 if (page_url.host() == chrome::kChromeUIPluginsHost) 388 if (page_url.host() == chrome::kChromeUIPluginsHost)
386 return PluginsUI::GetFaviconResourceBytes(); 389 return PluginsUI::GetFaviconResourceBytes();
387 390
388 return NULL; 391 return NULL;
389 } 392 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/tracing/tracing_controller_tests.js ('k') | chrome/browser/ui/webui/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698