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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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>
11 11
12 #include "ui/message_center/notification_blocker.h" 12 #include "ui/message_center/notification_blocker.h"
13 13
14 // A notification blocker for per-profile stream switching. Owned and controlled 14 // A notification blocker for per-profile stream switching. Owned and controlled
15 // by MultiUserWindowManagerChromeOS. 15 // by MultiUserWindowManagerChromeOS.
16 class MultiUserNotificationBlockerChromeOS 16 class MultiUserNotificationBlockerChromeOS
17 : public message_center::NotificationBlocker { 17 : public message_center::NotificationBlocker {
18 public: 18 public:
19 MultiUserNotificationBlockerChromeOS( 19 MultiUserNotificationBlockerChromeOS(
20 message_center::MessageCenter* message_center, 20 message_center::MessageCenter* message_center,
21 const std::string& initial_user_id); 21 const std::string& initial_user_id);
22 virtual ~MultiUserNotificationBlockerChromeOS(); 22 virtual ~MultiUserNotificationBlockerChromeOS();
23 23
24 // Called by MultiUserWindowManager when the active user has changed. 24 // Called by MultiUserWindowManager when the active user has changed.
25 void ActiveUserChanged(const std::string& user_id); 25 void ActiveUserChanged(const std::string& user_id);
26 26
27 // message_center::NotificationBlocker overrides: 27 // message_center::NotificationBlocker overrides:
28 virtual bool ShouldShowNotification( 28 virtual bool ShouldShowNotification(
29 const message_center::NotifierId& notifier_id) const OVERRIDE; 29 const message_center::NotifierId& notifier_id) const override;
30 virtual bool ShouldShowNotificationAsPopup( 30 virtual bool ShouldShowNotificationAsPopup(
31 const message_center::NotifierId& notifier_id) const OVERRIDE; 31 const message_center::NotifierId& notifier_id) const override;
32 32
33 private: 33 private:
34 // Returns true if this blocker is actively working. 34 // Returns true if this blocker is actively working.
35 bool IsActive() const; 35 bool IsActive() const;
36 36
37 std::string active_user_id_; 37 std::string active_user_id_;
38 std::map<std::string, bool> quiet_modes_; 38 std::map<std::string, bool> quiet_modes_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS); 40 DISALLOW_COPY_AND_ASSIGN(MultiUserNotificationBlockerChromeOS);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHRO MEOS_H_ 43 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_NOTIFICATION_BLOCKER_CHRO MEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698