Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4065)

Unified Diff: chrome/browser/notifications/multi_user_notification_blocker_chromeos.h

Issue 127423002: Supports window teleports for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wallpaper private api test Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/multi_user_notification_blocker_chromeos.h
diff --git a/chrome/browser/notifications/multi_user_notification_blocker_chromeos.h b/chrome/browser/notifications/multi_user_notification_blocker_chromeos.h
deleted file mode 100644
index 6dd92fa56c5bec1a77691f15720c227b26e1692b..0000000000000000000000000000000000000000
--- a/chrome/browser/notifications/multi_user_notification_blocker_chromeos.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_NOTIFICATIONS_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEOS_H_
-#define CHROME_BROWSER_NOTIFICATIONS_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEOS_H_
-
-#include <map>
-#include <string>
-
-#include "ash/shell_observer.h"
-#include "chrome/browser/chromeos/login/user_manager.h"
-#include "chromeos/login/login_state.h"
-#include "ui/message_center/notification_blocker.h"
-
-// A notification blocker for per-profile stream switching.
-class MultiUserNotificationBlockerChromeOS
- : public message_center::NotificationBlocker,
- public ash::ShellObserver,
- public chromeos::UserManager::UserSessionStateObserver {
- public:
- explicit MultiUserNotificationBlockerChromeOS(
- message_center::MessageCenter* message_center);
- virtual ~MultiUserNotificationBlockerChromeOS();
-
- // message_center::NotificationBlocker overrides:
- virtual bool ShouldShowNotification(
- const message_center::NotifierId& notifier_id) const OVERRIDE;
- virtual bool ShouldShowNotificationAsPopup(
- const message_center::NotifierId& notifier_id) const OVERRIDE;
-
- // ash::ShellObserver overrides:
- virtual void OnAppTerminating() OVERRIDE;
-
- // chromeos::UserManager::UserSessionStateObserver overrides:
- virtual void ActiveUserChanged(const chromeos::User* active_user) OVERRIDE;
-
- private:
- // Returns true if this blocker is actively working.
- bool IsActive() const;
-
- std::string active_user_id_;
- bool observing_;
- std::map<std::string, bool> quiet_modes_;
-
- DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS);
-};
-
-#endif // CHROME_BROWSER_NOTIFICATIONS_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698