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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.h

Issue 2198363002: Pass Notification into NotificationBlocker ShouldShow* methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ash build errors Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEO S_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEO S_H_
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEO S_H_ 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHROMEO S_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 MultiUserNotificationBlockerChromeOS( 21 MultiUserNotificationBlockerChromeOS(
22 message_center::MessageCenter* message_center, 22 message_center::MessageCenter* message_center,
23 const AccountId& initial_account_id); 23 const AccountId& initial_account_id);
24 ~MultiUserNotificationBlockerChromeOS() override; 24 ~MultiUserNotificationBlockerChromeOS() override;
25 25
26 // Called by MultiUserWindowManager when the active user has changed. 26 // Called by MultiUserWindowManager when the active user has changed.
27 void ActiveUserChanged(const AccountId& account_id); 27 void ActiveUserChanged(const AccountId& account_id);
28 28
29 // message_center::NotificationBlocker overrides: 29 // message_center::NotificationBlocker overrides:
30 bool ShouldShowNotification( 30 bool ShouldShowNotification(
31 const message_center::NotifierId& notifier_id) const override; 31 const message_center::Notification& notification) const override;
32 bool ShouldShowNotificationAsPopup( 32 bool ShouldShowNotificationAsPopup(
33 const message_center::NotifierId& notifier_id) const override; 33 const message_center::Notification& notification) const override;
34 34
35 private: 35 private:
36 // Returns true if this blocker is actively working. 36 // Returns true if this blocker is actively working.
37 bool IsActive() const; 37 bool IsActive() const;
38 38
39 AccountId active_account_id_; 39 AccountId active_account_id_;
40 std::map<AccountId, bool> quiet_modes_; 40 std::map<AccountId, bool> quiet_modes_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS); 42 DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHRO MEOS_H_ 45 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHRO MEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698