summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 15:52:29 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 15:52:29 +0000
commit8537054e6da7e12a50ab27786dd01b253b8a0d12 (patch)
treeec43ed5313377170b8446c71e1c0a5727953af3f /chrome/browser/dom_ui/dom_ui.h
parent0fda727e08d2f785ce127fba39c4ce69955fa934 (diff)
downloadchromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.zip
chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.gz
chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.bz2
Revert cl 19359 due to browser_tests timeout.
TBR=nsylvain Review URL: http://codereview.chromium.org/147206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.h')
-rw-r--r--chrome/browser/dom_ui/dom_ui.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h
index 1d81428..553ab28 100644
--- a/chrome/browser/dom_ui/dom_ui.h
+++ b/chrome/browser/dom_ui/dom_ui.h
@@ -129,13 +129,9 @@ class DOMUI {
// host is destroyed.
class DOMMessageHandler {
public:
- DOMMessageHandler() : dom_ui_(NULL) { }
+ explicit DOMMessageHandler(DOMUI* dom_ui);
virtual ~DOMMessageHandler() {};
- // Attaches |this| to |dom_ui| in order to handle messages from it. Declared
- // virtual so that subclasses can do special init work as soon as the dom_ui
- // is provided. Returns |this| for convenience.
- virtual DOMMessageHandler* Attach(DOMUI* dom_ui);
protected:
// Adds "url" and "title" keys on incoming dictionary, setting title
// as the url as a fallback on empty title.
@@ -143,16 +139,13 @@ class DOMMessageHandler {
std::wstring title,
const GURL& gurl);
- // This is where subclasses specify which messages they'd like to handle.
- virtual void RegisterMessages() = 0;
-
// Extract an integer value from a Value.
bool ExtractIntegerValue(const Value* value, int* out_int);
// Extract a string value from a Value.
std::wstring ExtractStringValue(const Value* value);
- DOMUI* dom_ui_;
+ DOMUI* const dom_ui_;
private:
DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler);