diff options
Diffstat (limited to 'chrome/browser/notifications')
| -rw-r--r-- | chrome/browser/notifications/balloon_host.h | 1 | ||||
| -rw-r--r-- | chrome/browser/notifications/notification_delegate.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h index 07ddf3d..7b21d27 100644 --- a/chrome/browser/notifications/balloon_host.h +++ b/chrome/browser/notifications/balloon_host.h @@ -113,6 +113,7 @@ class BalloonHost : public RenderViewHostDelegate, virtual RendererPreferences GetRendererPrefs(Profile* profile) const; protected: + virtual ~BalloonHost() {} // Must override in platform specific implementations. virtual void InitRenderWidgetHostView() = 0; virtual RenderWidgetHostView* render_widget_host_view() const = 0; 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_ |
