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"
|
2014-10-11 08:38:27 +00:00
|
|
|
#include "base/memory/scoped_ptr.h"
|
2014-07-27 10:27:41 +00:00
|
|
|
|
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-10-11 08:38:27 +00:00
|
|
|
scoped_ptr<content::DesktopNotificationDelegate> delegate,
|
2014-07-27 10:27:41 +00:00
|
|
|
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
|