#ifndef CHROME_BROWSER_NOTIFICATIONS_FULLSCREEN_NOTIFICATION_BLOCKER_H_
#define CHROME_BROWSER_NOTIFICATIONS_FULLSCREEN_NOTIFICATION_BLOCKER_H_
#include "base/basictypes.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "ui/message_center/notification_blocker.h"
class FullscreenNotificationBlocker
: public message_center::NotificationBlocker,
public content::NotificationObserver {
public:
explicit FullscreenNotificationBlocker(
message_center::MessageCenter* message_center);
virtual ~FullscreenNotificationBlocker();
bool is_fullscreen_mode() const { return is_fullscreen_mode_; }
virtual void CheckState() OVERRIDE;
virtual bool ShouldShowNotificationAsPopup(
const message_center::NotifierId& notifier_id) const OVERRIDE;
private:
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
bool is_fullscreen_mode_;
content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(FullscreenNotificationBlocker);
};
#endif