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

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: Remove tabs 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (url.host() == chrome::kChromeUINetInternalsHost) 187 if (url.host() == chrome::kChromeUINetInternalsHost)
187 return &NewWebUI<NetInternalsUI>; 188 return &NewWebUI<NetInternalsUI>;
188 if (url.host() == chrome::kChromeUIPluginsHost) 189 if (url.host() == chrome::kChromeUIPluginsHost)
189 return &NewWebUI<PluginsUI>; 190 return &NewWebUI<PluginsUI>;
190 if (url.host() == chrome::kChromeUISessionsHost) 191 if (url.host() == chrome::kChromeUISessionsHost)
191 return &NewWebUI<SessionsUI>; 192 return &NewWebUI<SessionsUI>;
192 if (url.host() == chrome::kChromeUISyncInternalsHost) 193 if (url.host() == chrome::kChromeUISyncInternalsHost)
193 return &NewWebUI<SyncInternalsUI>; 194 return &NewWebUI<SyncInternalsUI>;
194 if (url.host() == chrome::kChromeUISettingsHost) 195 if (url.host() == chrome::kChromeUISettingsHost)
195 return &NewWebUI<OptionsUI>; 196 return &NewWebUI<OptionsUI>;
197 if (url.host() == chrome::kChromeUITracingHost)
198 return &NewWebUI<TracingUI>;
196 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 199 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
197 return &NewWebUI<QuotaInternalsUI>; 200 return &NewWebUI<QuotaInternalsUI>;
198 if (url.host() == chrome::kChromeUIWorkersHost) 201 if (url.host() == chrome::kChromeUIWorkersHost)
199 return &NewWebUI<WorkersUI>; 202 return &NewWebUI<WorkersUI>;
200 203
201 #if defined(OS_CHROMEOS) 204 #if defined(OS_CHROMEOS)
202 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 205 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
203 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 206 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
204 if (url.host() == chrome::kChromeUICollectedCookiesHost || 207 if (url.host() == chrome::kChromeUICollectedCookiesHost ||
205 url.host() == chrome::kChromeUIHttpAuthHost) { 208 url.host() == chrome::kChromeUIHttpAuthHost) {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return FlashUI::GetFaviconResourceBytes(); 392 return FlashUI::GetFaviconResourceBytes();
390 393
391 if (page_url.host() == chrome::kChromeUISettingsHost) 394 if (page_url.host() == chrome::kChromeUISettingsHost)
392 return OptionsUI::GetFaviconResourceBytes(); 395 return OptionsUI::GetFaviconResourceBytes();
393 396
394 if (page_url.host() == chrome::kChromeUIPluginsHost) 397 if (page_url.host() == chrome::kChromeUIPluginsHost)
395 return PluginsUI::GetFaviconResourceBytes(); 398 return PluginsUI::GetFaviconResourceBytes();
396 399
397 return NULL; 400 return NULL;
398 } 401 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698