diff options
Diffstat (limited to 'chrome/browser/notifications/notification_delegate.h')
| -rw-r--r-- | chrome/browser/notifications/notification_delegate.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/notifications/notification_delegate.h b/chrome/browser/notifications/notification_delegate.h index 6d69335..2aa8ee8 100644 --- a/chrome/browser/notifications/notification_delegate.h +++ b/chrome/browser/notifications/notification_delegate.h @@ -15,7 +15,6 @@ class NotificationDelegate : public base::RefCountedThreadSafe<NotificationDelegate> { public: - // To be called when the desktop notification is actually shown. virtual void Display() = 0; @@ -29,6 +28,12 @@ class NotificationDelegate // Returns unique id of the notification. virtual std::string id() const = 0; + + protected: + virtual ~NotificationDelegate() {} + + private: + friend class base::RefCountedThreadSafe<NotificationDelegate>; }; #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ |
