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

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

Issue 7250004: Expose list of all running shared workers at chrome://workers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 5 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/resources/workers_resources.grd ('k') | chrome/browser/ui/webui/workers_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) 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 17 matching lines...) Expand all
28 #include "chrome/browser/ui/webui/net_internals_ui.h" 28 #include "chrome/browser/ui/webui/net_internals_ui.h"
29 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 29 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
30 #include "chrome/browser/ui/webui/options/options_ui.h" 30 #include "chrome/browser/ui/webui/options/options_ui.h"
31 #include "chrome/browser/ui/webui/plugins_ui.h" 31 #include "chrome/browser/ui/webui/plugins_ui.h"
32 #include "chrome/browser/ui/webui/print_preview_ui.h" 32 #include "chrome/browser/ui/webui/print_preview_ui.h"
33 #include "chrome/browser/ui/webui/quota_internals_ui.h" 33 #include "chrome/browser/ui/webui/quota_internals_ui.h"
34 #include "chrome/browser/ui/webui/sessions_ui.h" 34 #include "chrome/browser/ui/webui/sessions_ui.h"
35 #include "chrome/browser/ui/webui/sync_internals_ui.h" 35 #include "chrome/browser/ui/webui/sync_internals_ui.h"
36 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h" 36 #include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h"
37 #include "chrome/browser/ui/webui/textfields_ui.h" 37 #include "chrome/browser/ui/webui/textfields_ui.h"
38 #include "chrome/browser/ui/webui/workers_ui.h"
38 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
39 #include "chrome/common/extensions/extension_constants.h" 40 #include "chrome/common/extensions/extension_constants.h"
40 #include "chrome/common/url_constants.h" 41 #include "chrome/common/url_constants.h"
41 #include "content/browser/tab_contents/tab_contents.h" 42 #include "content/browser/tab_contents/tab_contents.h"
42 #include "content/browser/webui/web_ui.h" 43 #include "content/browser/webui/web_ui.h"
43 #include "googleurl/src/gurl.h" 44 #include "googleurl/src/gurl.h"
44 45
45 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
46 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 47 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
47 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" 48 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 if (url.host() == chrome::kChromeUIPluginsHost) 176 if (url.host() == chrome::kChromeUIPluginsHost)
176 return &NewWebUI<PluginsUI>; 177 return &NewWebUI<PluginsUI>;
177 if (url.host() == chrome::kChromeUISessionsHost) 178 if (url.host() == chrome::kChromeUISessionsHost)
178 return &NewWebUI<SessionsUI>; 179 return &NewWebUI<SessionsUI>;
179 if (url.host() == chrome::kChromeUISyncInternalsHost) 180 if (url.host() == chrome::kChromeUISyncInternalsHost)
180 return &NewWebUI<SyncInternalsUI>; 181 return &NewWebUI<SyncInternalsUI>;
181 if (url.host() == chrome::kChromeUISettingsHost) 182 if (url.host() == chrome::kChromeUISettingsHost)
182 return &NewWebUI<OptionsUI>; 183 return &NewWebUI<OptionsUI>;
183 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 184 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
184 return &NewWebUI<QuotaInternalsUI>; 185 return &NewWebUI<QuotaInternalsUI>;
186 if (url.host() == chrome::kChromeUIWorkersHost)
187 return &NewWebUI<WorkersUI>;
185 188
186 #if defined(OS_CHROMEOS) 189 #if defined(OS_CHROMEOS)
187 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 190 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
188 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 191 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
189 if (url.host() == chrome::kChromeUICollectedCookiesHost || 192 if (url.host() == chrome::kChromeUICollectedCookiesHost ||
190 url.host() == chrome::kChromeUIHttpAuthHost) { 193 url.host() == chrome::kChromeUIHttpAuthHost) {
191 return &NewWebUI<ConstrainedHtmlUI>; 194 return &NewWebUI<ConstrainedHtmlUI>;
192 } 195 }
193 if (url.host() == chrome::kChromeUIActiveDownloadsHost) 196 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
194 return &NewWebUI<ActiveDownloadsUI>; 197 return &NewWebUI<ActiveDownloadsUI>;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 return FlashUI::GetFaviconResourceBytes(); 368 return FlashUI::GetFaviconResourceBytes();
366 369
367 if (page_url.host() == chrome::kChromeUISettingsHost) 370 if (page_url.host() == chrome::kChromeUISettingsHost)
368 return OptionsUI::GetFaviconResourceBytes(); 371 return OptionsUI::GetFaviconResourceBytes();
369 372
370 if (page_url.host() == chrome::kChromeUIPluginsHost) 373 if (page_url.host() == chrome::kChromeUIPluginsHost)
371 return PluginsUI::GetFaviconResourceBytes(); 374 return PluginsUI::GetFaviconResourceBytes();
372 375
373 return NULL; 376 return NULL;
374 } 377 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/workers_resources.grd ('k') | chrome/browser/ui/webui/workers_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698