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

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

Issue 3061044: HTML UI implementation for the Google Feedback client for Chrome/ChromeOS.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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) 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/chrome_thread.h" 8 #include "chrome/browser/chrome_thread.h"
9 #include "chrome/browser/dom_ui/bookmarks_ui.h" 9 #include "chrome/browser/dom_ui/bookmarks_ui.h"
10 #include "chrome/browser/dom_ui/bug_report_ui.h"
10 #include "chrome/browser/dom_ui/downloads_ui.h" 11 #include "chrome/browser/dom_ui/downloads_ui.h"
11 #include "chrome/browser/dom_ui/devtools_ui.h" 12 #include "chrome/browser/dom_ui/devtools_ui.h"
12 #include "chrome/browser/dom_ui/history_ui.h" 13 #include "chrome/browser/dom_ui/history_ui.h"
13 #include "chrome/browser/dom_ui/history2_ui.h" 14 #include "chrome/browser/dom_ui/history2_ui.h"
14 #include "chrome/browser/dom_ui/html_dialog_ui.h" 15 #include "chrome/browser/dom_ui/html_dialog_ui.h"
15 #include "chrome/browser/dom_ui/net_internals_ui.h" 16 #include "chrome/browser/dom_ui/net_internals_ui.h"
16 #include "chrome/browser/dom_ui/new_tab_ui.h" 17 #include "chrome/browser/dom_ui/new_tab_ui.h"
17 #include "chrome/browser/dom_ui/options_ui.h" 18 #include "chrome/browser/dom_ui/options_ui.h"
18 #include "chrome/browser/dom_ui/remoting_ui.h" 19 #include "chrome/browser/dom_ui/remoting_ui.h"
19 #include "chrome/browser/dom_ui/plugins_ui.h" 20 #include "chrome/browser/dom_ui/plugins_ui.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // sessions or bookmarks, so we say any URL with that scheme triggers the new 96 // sessions or bookmarks, so we say any URL with that scheme triggers the new
96 // tab page. 97 // tab page.
97 if (url.host() == chrome::kChromeUINewTabHost || 98 if (url.host() == chrome::kChromeUINewTabHost ||
98 url.SchemeIs(chrome::kChromeInternalScheme)) 99 url.SchemeIs(chrome::kChromeInternalScheme))
99 return &NewDOMUI<NewTabUI>; 100 return &NewDOMUI<NewTabUI>;
100 101
101 // We must compare hosts only since some of the DOM UIs append extra stuff 102 // We must compare hosts only since some of the DOM UIs append extra stuff
102 // after the host name. 103 // after the host name.
103 if (url.host() == chrome::kChromeUIBookmarksHost) 104 if (url.host() == chrome::kChromeUIBookmarksHost)
104 return &NewDOMUI<BookmarksUI>; 105 return &NewDOMUI<BookmarksUI>;
106 if (url.host() == chrome::kChromeUIBugReportHost)
107 return &NewDOMUI<BugReportUI>;
105 if (url.host() == chrome::kChromeUIDevToolsHost) 108 if (url.host() == chrome::kChromeUIDevToolsHost)
106 return &NewDOMUI<DevToolsUI>; 109 return &NewDOMUI<DevToolsUI>;
107 if (url.host() == chrome::kChromeUIDownloadsHost) 110 if (url.host() == chrome::kChromeUIDownloadsHost)
108 return &NewDOMUI<DownloadsUI>; 111 return &NewDOMUI<DownloadsUI>;
109 if (url.host() == chrome::kChromeUIExtensionsHost) 112 if (url.host() == chrome::kChromeUIExtensionsHost)
110 return &NewDOMUI<ExtensionsUI>; 113 return &NewDOMUI<ExtensionsUI>;
111 if (url.host() == chrome::kChromeUIHistoryHost) 114 if (url.host() == chrome::kChromeUIHistoryHost)
112 return &NewDOMUI<HistoryUI>; 115 return &NewDOMUI<HistoryUI>;
113 if (url.host() == chrome::kChromeUIHistory2Host) 116 if (url.host() == chrome::kChromeUIHistory2Host)
114 return &NewDOMUI<HistoryUI2>; 117 return &NewDOMUI<HistoryUI2>;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 if (page_url.host() == chrome::kChromeUIPluginsHost) 232 if (page_url.host() == chrome::kChromeUIPluginsHost)
230 return PluginsUI::GetFaviconResourceBytes(); 233 return PluginsUI::GetFaviconResourceBytes();
231 234
232 #if defined(ENABLE_REMOTING) 235 #if defined(ENABLE_REMOTING)
233 if (page_url.host() == chrome::kChromeUIRemotingHost) 236 if (page_url.host() == chrome::kChromeUIRemotingHost)
234 return RemotingUI::GetFaviconResourceBytes(); 237 return RemotingUI::GetFaviconResourceBytes();
235 #endif 238 #endif
236 239
237 return NULL; 240 return NULL;
238 } 241 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/bug_report_ui.cc ('k') | chrome/browser/dom_ui/dom_ui_screenshot_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698