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

Side by Side Diff: chrome/browser/dom_ui/web_ui.h

Issue 6513010: WebUI: Get rid of more references to DOMUI in the rest of the directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 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 #ifndef CHROME_BROWSER_DOM_UI_WEB_UI_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_WEB_UI_H_
6 #define CHROME_BROWSER_DOM_UI_WEB_UI_H_ 6 #define CHROME_BROWSER_DOM_UI_WEB_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 TabContents* tab_contents_; 176 TabContents* tab_contents_;
177 177
178 private: 178 private:
179 // A map of message name -> message handling callback. 179 // A map of message name -> message handling callback.
180 typedef std::map<std::string, MessageCallback*> MessageCallbackMap; 180 typedef std::map<std::string, MessageCallback*> MessageCallbackMap;
181 MessageCallbackMap message_callbacks_; 181 MessageCallbackMap message_callbacks_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(WebUI); 183 DISALLOW_COPY_AND_ASSIGN(WebUI);
184 }; 184 };
185 185
186 // TODO(tfarina): Remove this when all the references to DOMUI class are fixed.
187 // This is temporary until we can rename all the entries to WebUI.
188 // See crbug.com/59945 for more information.
189 typedef WebUI DOMUI;
190
191 // Messages sent from the DOM are forwarded via the WebUI to handler 186 // Messages sent from the DOM are forwarded via the WebUI to handler
192 // classes. These objects are owned by WebUI and destroyed when the 187 // classes. These objects are owned by WebUI and destroyed when the
193 // host is destroyed. 188 // host is destroyed.
194 class WebUIMessageHandler { 189 class WebUIMessageHandler {
195 public: 190 public:
196 WebUIMessageHandler(); 191 WebUIMessageHandler();
197 virtual ~WebUIMessageHandler(); 192 virtual ~WebUIMessageHandler();
198 193
199 // Attaches |this| to |web_ui| in order to handle messages from it. Declared 194 // Attaches |this| to |web_ui| in order to handle messages from it. Declared
200 // virtual so that subclasses can do special init work as soon as the web_ui 195 // virtual so that subclasses can do special init work as soon as the web_ui
(...skipping 16 matching lines...) Expand all
217 // Extract a string value from a list Value. 212 // Extract a string value from a list Value.
218 std::wstring ExtractStringValue(const ListValue* value); 213 std::wstring ExtractStringValue(const ListValue* value);
219 214
220 WebUI* dom_ui_; // TODO(tfarina): Rename the variable to web_ui_. 215 WebUI* dom_ui_; // TODO(tfarina): Rename the variable to web_ui_.
221 216
222 private: 217 private:
223 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler); 218 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler);
224 }; 219 };
225 220
226 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_H_ 221 #endif // CHROME_BROWSER_DOM_UI_WEB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/options_ui.cc ('k') | chrome/browser/notifications/balloon_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698