summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification_object_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/notifications/notification_object_proxy.h')
-rw-r--r--chrome/browser/notifications/notification_object_proxy.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/notifications/notification_object_proxy.h b/chrome/browser/notifications/notification_object_proxy.h
index ff71bc3..1ff17aa 100644
--- a/chrome/browser/notifications/notification_object_proxy.h
+++ b/chrome/browser/notifications/notification_object_proxy.h
@@ -24,15 +24,15 @@ class NotificationObjectProxy :
int notification_id, bool worker);
// To be called when the desktop notification is actually shown.
- void Display();
+ virtual void Display();
// To be called when the desktop notification cannot be shown due to an
// error.
- void Error();
+ virtual void Error();
// To be called when the desktop notification is closed. If closed by a
// user explicitly (as opposed to timeout/script), |by_user| should be true.
- void Close(bool by_user);
+ virtual void Close(bool by_user);
// Compares two proxies by ids to decide if they are equal.
bool IsSame(const NotificationObjectProxy& other) const {
@@ -42,11 +42,12 @@ class NotificationObjectProxy :
worker_ == other.worker_);
}
- private:
+ protected:
friend class base::RefCountedThreadSafe<NotificationObjectProxy>;
- ~NotificationObjectProxy() {}
+ virtual ~NotificationObjectProxy() {}
+ private:
// Called on UI thread to schedule a message for sending.
void DeliverMessage(IPC::Message* message);