summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/tips_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/tips_handler.h')
-rw-r--r--chrome/browser/dom_ui/tips_handler.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/dom_ui/tips_handler.h b/chrome/browser/dom_ui/tips_handler.h
index 7847ba6..b6d5ccc 100644
--- a/chrome/browser/dom_ui/tips_handler.h
+++ b/chrome/browser/dom_ui/tips_handler.h
@@ -28,9 +28,12 @@ class Value;
class TipsHandler : public DOMMessageHandler {
public:
- explicit TipsHandler(DOMUI* dom_ui);
+ TipsHandler() : tips_cache_(NULL) {}
+ virtual ~TipsHandler() {}
- TipsHandler();
+ // DOMMessageHandler implementation and overrides.
+ virtual DOMMessageHandler* Attach(DOMUI* dom_ui);
+ virtual void RegisterMessages();
// Callback which pulls tips data from the preferences.
void HandleGetTips(const Value* content);
@@ -42,9 +45,6 @@ class TipsHandler : public DOMMessageHandler {
// Make sure the string we are pushing to the NTP is a valid URL.
bool IsValidURL(const std::wstring& url_string);
- // So we can push data out to the page that has called this handler.
- DOMUI* dom_ui_;
-
// Filled with data from cache in preferences.
const DictionaryValue* tips_cache_;