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

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

Issue 9320056: Help: Implement the initial version of the cross-platform help/about page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: String fix. Created 8 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
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/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/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/extensions/extension_web_ui.h" 11 #include "chrome/browser/extensions/extension_web_ui.h"
12 #include "chrome/browser/history/history_types.h" 12 #include "chrome/browser/history/history_types.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/browser/ui/webui/about_page/about_page_ui.h" 16 #include "chrome/browser/ui/webui/help/help_ui.h"
17 #include "chrome/browser/ui/webui/about_ui.h" 17 #include "chrome/browser/ui/webui/about_ui.h"
18 #include "chrome/browser/ui/webui/bookmarks_ui.h" 18 #include "chrome/browser/ui/webui/bookmarks_ui.h"
19 #include "chrome/browser/ui/webui/constrained_html_ui.h" 19 #include "chrome/browser/ui/webui/constrained_html_ui.h"
20 #include "chrome/browser/ui/webui/crashes_ui.h" 20 #include "chrome/browser/ui/webui/crashes_ui.h"
21 #include "chrome/browser/ui/webui/devtools_ui.h" 21 #include "chrome/browser/ui/webui/devtools_ui.h"
22 #include "chrome/browser/ui/webui/downloads_ui.h" 22 #include "chrome/browser/ui/webui/downloads_ui.h"
23 #include "chrome/browser/ui/webui/edit_search_engine_dialog_ui_webui.h" 23 #include "chrome/browser/ui/webui/edit_search_engine_dialog_ui_webui.h"
24 #include "chrome/browser/ui/webui/extensions/extension_activity_ui.h" 24 #include "chrome/browser/ui/webui/extensions/extension_activity_ui.h"
25 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" 25 #include "chrome/browser/ui/webui/extensions/extensions_ui.h"
26 #include "chrome/browser/ui/webui/feedback_ui.h" 26 #include "chrome/browser/ui/webui/feedback_ui.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (url.host() == chrome::kChromeUIExtensionsFrameHost) 189 if (url.host() == chrome::kChromeUIExtensionsFrameHost)
190 return &NewWebUI<ExtensionsUI>; 190 return &NewWebUI<ExtensionsUI>;
191 if (url.host() == chrome::kChromeUIFeedbackHost) 191 if (url.host() == chrome::kChromeUIFeedbackHost)
192 return &NewWebUI<FeedbackUI>; 192 return &NewWebUI<FeedbackUI>;
193 if (url.host() == chrome::kChromeUIFlagsHost) 193 if (url.host() == chrome::kChromeUIFlagsHost)
194 return &NewWebUI<FlagsUI>; 194 return &NewWebUI<FlagsUI>;
195 if (url.host() == chrome::kChromeUIFlashHost) 195 if (url.host() == chrome::kChromeUIFlashHost)
196 return &NewWebUI<FlashUI>; 196 return &NewWebUI<FlashUI>;
197 if (url.host() == chrome::kChromeUIGpuInternalsHost) 197 if (url.host() == chrome::kChromeUIGpuInternalsHost)
198 return &NewWebUI<GpuInternalsUI>; 198 return &NewWebUI<GpuInternalsUI>;
199 if (url.host() == chrome::kChromeUIHelpFrameHost)
200 return &NewWebUI<HelpUI>;
199 if (url.host() == chrome::kChromeUIHistoryHost) 201 if (url.host() == chrome::kChromeUIHistoryHost)
200 return &NewWebUI<HistoryUI>; 202 return &NewWebUI<HistoryUI>;
201 if (url.host() == chrome::kChromeUIHungRendererDialogHost) 203 if (url.host() == chrome::kChromeUIHungRendererDialogHost)
202 return &NewWebUI<HungRendererDialogUI>; 204 return &NewWebUI<HungRendererDialogUI>;
203 if (url.host() == chrome::kChromeUIMediaInternalsHost) 205 if (url.host() == chrome::kChromeUIMediaInternalsHost)
204 return &NewWebUI<MediaInternalsUI>; 206 return &NewWebUI<MediaInternalsUI>;
205 if (url.host() == chrome::kChromeUINetInternalsHost) 207 if (url.host() == chrome::kChromeUINetInternalsHost)
206 return &NewWebUI<NetInternalsUI>; 208 return &NewWebUI<NetInternalsUI>;
207 if (url.host() == chrome::kChromeUINetworkActionPredictorHost) 209 if (url.host() == chrome::kChromeUINetworkActionPredictorHost)
208 return &NewWebUI<NetworkActionPredictorUI>; 210 return &NewWebUI<NetworkActionPredictorUI>;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 if (url.host() == chrome::kChromeUIOobeHost) 264 if (url.host() == chrome::kChromeUIOobeHost)
263 return &NewWebUI<chromeos::OobeUI>; 265 return &NewWebUI<chromeos::OobeUI>;
264 if (url.host() == chrome::kChromeUIProxySettingsHost) 266 if (url.host() == chrome::kChromeUIProxySettingsHost)
265 return &NewWebUI<chromeos::ProxySettingsUI>; 267 return &NewWebUI<chromeos::ProxySettingsUI>;
266 if (url.host() == chrome::kChromeUIRegisterPageHost) 268 if (url.host() == chrome::kChromeUIRegisterPageHost)
267 return &NewWebUI<RegisterPageUI>; 269 return &NewWebUI<RegisterPageUI>;
268 if (url.host() == chrome::kChromeUISimUnlockHost) 270 if (url.host() == chrome::kChromeUISimUnlockHost)
269 return &NewWebUI<chromeos::SimUnlockUI>; 271 return &NewWebUI<chromeos::SimUnlockUI>;
270 if (url.host() == chrome::kChromeUISystemInfoHost) 272 if (url.host() == chrome::kChromeUISystemInfoHost)
271 return &NewWebUI<SystemInfoUI>; 273 return &NewWebUI<SystemInfoUI>;
272 if (url.host() == chrome::kChromeUIAboutPageFrameHost)
273 return &NewWebUI<AboutPageUI>;
274 #endif // defined(OS_CHROMEOS) 274 #endif // defined(OS_CHROMEOS)
275 275
276 /**************************************************************************** 276 /****************************************************************************
277 * Other #defines and special logics. 277 * Other #defines and special logics.
278 ***************************************************************************/ 278 ***************************************************************************/
279 #if defined(ENABLE_CONFIGURATION_POLICY) 279 #if defined(ENABLE_CONFIGURATION_POLICY)
280 if (url.host() == chrome::kChromeUIPolicyHost) 280 if (url.host() == chrome::kChromeUIPolicyHost)
281 return &NewWebUI<PolicyUI>; 281 return &NewWebUI<PolicyUI>;
282 #endif 282 #endif
283 #if defined(USE_VIRTUAL_KEYBOARD) 283 #if defined(USE_VIRTUAL_KEYBOARD)
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 return OptionsUI::GetFaviconResourceBytes(); 501 return OptionsUI::GetFaviconResourceBytes();
502 502
503 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 503 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
504 return options2::OptionsUI::GetFaviconResourceBytes(); 504 return options2::OptionsUI::GetFaviconResourceBytes();
505 505
506 if (page_url.host() == chrome::kChromeUIPluginsHost) 506 if (page_url.host() == chrome::kChromeUIPluginsHost)
507 return PluginsUI::GetFaviconResourceBytes(); 507 return PluginsUI::GetFaviconResourceBytes();
508 508
509 return NULL; 509 return NULL;
510 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698