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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_factory.cc

Issue 5228004: Switch the about:gpu implementation from an about handler to dom_ui.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/dom_ui_factory.h" 5 #include "chrome/browser/dom_ui/dom_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/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/dom_ui/bookmarks_ui.h" 10 #include "chrome/browser/dom_ui/bookmarks_ui.h"
11 #include "chrome/browser/dom_ui/bug_report_ui.h" 11 #include "chrome/browser/dom_ui/bug_report_ui.h"
12 #include "chrome/browser/dom_ui/constrained_html_ui.h" 12 #include "chrome/browser/dom_ui/constrained_html_ui.h"
13 #include "chrome/browser/dom_ui/downloads_ui.h" 13 #include "chrome/browser/dom_ui/downloads_ui.h"
14 #include "chrome/browser/dom_ui/devtools_ui.h" 14 #include "chrome/browser/dom_ui/devtools_ui.h"
15 #include "chrome/browser/dom_ui/gpu_ui.h"
15 #include "chrome/browser/dom_ui/history_ui.h" 16 #include "chrome/browser/dom_ui/history_ui.h"
16 #include "chrome/browser/dom_ui/history2_ui.h" 17 #include "chrome/browser/dom_ui/history2_ui.h"
17 #include "chrome/browser/dom_ui/html_dialog_ui.h" 18 #include "chrome/browser/dom_ui/html_dialog_ui.h"
18 #if defined(TOUCH_UI) 19 #if defined(TOUCH_UI)
19 #include "chrome/browser/dom_ui/keyboard_ui.h" 20 #include "chrome/browser/dom_ui/keyboard_ui.h"
20 #endif 21 #endif
21 #include "chrome/browser/dom_ui/flags_ui.h" 22 #include "chrome/browser/dom_ui/flags_ui.h"
22 #include "chrome/browser/dom_ui/net_internals_ui.h" 23 #include "chrome/browser/dom_ui/net_internals_ui.h"
23 #include "chrome/browser/dom_ui/new_tab_ui.h" 24 #include "chrome/browser/dom_ui/new_tab_ui.h"
24 #include "chrome/browser/dom_ui/plugins_ui.h" 25 #include "chrome/browser/dom_ui/plugins_ui.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 if (url.host() == chrome::kChromeUIHistory2Host) 151 if (url.host() == chrome::kChromeUIHistory2Host)
151 return &NewDOMUI<HistoryUI2>; 152 return &NewDOMUI<HistoryUI2>;
152 if (url.host() == chrome::kChromeUIFlagsHost) 153 if (url.host() == chrome::kChromeUIFlagsHost)
153 return &NewDOMUI<FlagsUI>; 154 return &NewDOMUI<FlagsUI>;
154 #if defined(TOUCH_UI) 155 #if defined(TOUCH_UI)
155 if (url.host() == chrome::kChromeUIKeyboardHost) 156 if (url.host() == chrome::kChromeUIKeyboardHost)
156 return &NewDOMUI<KeyboardUI>; 157 return &NewDOMUI<KeyboardUI>;
157 #endif 158 #endif
158 if (url.host() == chrome::kChromeUINetInternalsHost) 159 if (url.host() == chrome::kChromeUINetInternalsHost)
159 return &NewDOMUI<NetInternalsUI>; 160 return &NewDOMUI<NetInternalsUI>;
161 if (url.host() == chrome::kChromeUIGpuHost)
162 return &NewDOMUI<GpuUI>;
160 if (url.host() == chrome::kChromeUIPluginsHost) 163 if (url.host() == chrome::kChromeUIPluginsHost)
161 return &NewDOMUI<PluginsUI>; 164 return &NewDOMUI<PluginsUI>;
162 #if defined(ENABLE_REMOTING) 165 #if defined(ENABLE_REMOTING)
163 if (url.host() == chrome::kChromeUIRemotingHost) { 166 if (url.host() == chrome::kChromeUIRemotingHost) {
164 if (CommandLine::ForCurrentProcess()->HasSwitch( 167 if (CommandLine::ForCurrentProcess()->HasSwitch(
165 switches::kEnableRemoting)) { 168 switches::kEnableRemoting)) {
166 return &NewDOMUI<RemotingUI>; 169 return &NewDOMUI<RemotingUI>;
167 } 170 }
168 } 171 }
169 #endif 172 #endif
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 if (page_url.host() == chrome::kChromeUIPluginsHost) 308 if (page_url.host() == chrome::kChromeUIPluginsHost)
306 return PluginsUI::GetFaviconResourceBytes(); 309 return PluginsUI::GetFaviconResourceBytes();
307 310
308 #if defined(ENABLE_REMOTING) 311 #if defined(ENABLE_REMOTING)
309 if (page_url.host() == chrome::kChromeUIRemotingHost) 312 if (page_url.host() == chrome::kChromeUIRemotingHost)
310 return RemotingUI::GetFaviconResourceBytes(); 313 return RemotingUI::GetFaviconResourceBytes();
311 #endif 314 #endif
312 315
313 return NULL; 316 return NULL;
314 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698