2013-03-28 21:49:29 +00:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
|
2014-07-27 10:27:41 +00:00
|
|
|
#include "base/callback_forward.h"
|
|
|
|
|
2013-03-28 21:49:29 +00:00
|
|
|
namespace content {
|
2014-07-27 10:27:41 +00:00
|
|
|
class DesktopNotificationDelegate;
|
2013-03-28 21:49:29 +00:00
|
|
|
struct ShowDesktopNotificationHostMsgParams;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class NotificationPresenter {
|
|
|
|
public:
|
2013-11-17 23:42:15 +00:00
|
|
|
virtual ~NotificationPresenter() {}
|
2013-03-28 21:49:29 +00:00
|
|
|
|
2013-03-28 22:03:58 +00:00
|
|
|
static NotificationPresenter* Create();
|
|
|
|
|
|
|
|
virtual void ShowNotification(
|
2013-03-28 21:49:29 +00:00
|
|
|
const content::ShowDesktopNotificationHostMsgParams&,
|
2014-07-27 10:27:41 +00:00
|
|
|
content::DesktopNotificationDelegate* delegate,
|
|
|
|
base::Closure* cancel_callback) = 0;
|
2013-03-28 21:49:29 +00:00
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-03-28 21:49:29 +00:00
|
|
|
|
|
|
|
#endif
|