28 lines
639 B
C++
28 lines
639 B
C++
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_H_
|
|
|
|
#include "base/callback_forward.h"
|
|
#include "base/memory/scoped_ptr.h"
|
|
|
|
namespace content {
|
|
class DesktopNotificationDelegate;
|
|
struct PlatformNotificationData;
|
|
}
|
|
|
|
namespace brightray {
|
|
|
|
class NotificationPresenter {
|
|
public:
|
|
virtual ~NotificationPresenter() {}
|
|
|
|
static NotificationPresenter* Create();
|
|
|
|
virtual void ShowNotification(
|
|
const content::PlatformNotificationData&,
|
|
scoped_ptr<content::DesktopNotificationDelegate> delegate,
|
|
base::Closure* cancel_callback) = 0;
|
|
};
|
|
|
|
} // namespace brightray
|
|
|
|
#endif
|