#ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEOS_H_
#define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEOS_H_
#include <map>
#include <set>
#include <string>
#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
#include "ui/message_center/notification_blocker.h"
class MultiUserNotificationBlockerChromeOS
: public message_center::NotificationBlocker,
public chrome::MultiUserWindowManager::Observer {
public:
MultiUserNotificationBlockerChromeOS(
message_center::MessageCenter* message_center,
chrome::MultiUserWindowManager* multi_user_window_manager,
const std::string& initial_user_id);
virtual ~MultiUserNotificationBlockerChromeOS();
void ActiveUserChanged(const std::string& user_id);
virtual bool ShouldShowNotification(
const message_center::NotifierId& notifier_id) const OVERRIDE;
virtual bool ShouldShowNotificationAsPopup(
const message_center::NotifierId& notifier_id) const OVERRIDE;
virtual void OnOwnerEntryAdded(aura::Window* window) OVERRIDE;
virtual void OnOwnerEntryChanged(aura::Window* window) OVERRIDE;
virtual void OnOwnerEntryRemoved(aura::Window* window) OVERRIDE;
private:
bool IsActive() const;
void UpdateWindowOwners();
chrome::MultiUserWindowManager* multi_user_window_manager_;
std::string active_user_id_;
std::map<std::string, bool> quiet_modes_;
std::set<std::string> current_user_ids_;
DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS);
};
#endif