| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class NotificationUIManagerImpl | 27 class NotificationUIManagerImpl |
| 28 : public NotificationUIManager, | 28 : public NotificationUIManager, |
| 29 public content::NotificationObserver { | 29 public content::NotificationObserver { |
| 30 public: | 30 public: |
| 31 NotificationUIManagerImpl(); | 31 NotificationUIManagerImpl(); |
| 32 virtual ~NotificationUIManagerImpl(); | 32 virtual ~NotificationUIManagerImpl(); |
| 33 | 33 |
| 34 // NotificationUIManager: | 34 // NotificationUIManager: |
| 35 virtual void Add(const Notification& notification, | 35 virtual void Add(const Notification& notification, |
| 36 Profile* profile) OVERRIDE; | 36 Profile* profile) OVERRIDE; |
| 37 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; | 37 virtual bool DoesIdExist(const std::string& notification_id, |
| 38 Notification* matched_notification) OVERRIDE; |
| 38 virtual bool CancelById(const std::string& notification_id) OVERRIDE; | 39 virtual bool CancelById(const std::string& notification_id) OVERRIDE; |
| 39 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( | 40 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
| 40 Profile* profile, | 41 Profile* profile, |
| 41 const GURL& source) OVERRIDE; | 42 const GURL& source) OVERRIDE; |
| 42 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 43 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
| 43 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 44 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
| 44 virtual void CancelAll() OVERRIDE; | 45 virtual void CancelAll() OVERRIDE; |
| 45 | 46 |
| 46 void GetQueuedNotificationsForTesting( | 47 void GetQueuedNotificationsForTesting( |
| 47 std::vector<const Notification*>* notifications); | 48 std::vector<const Notification*>* notifications); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 content::NotificationRegistrar registrar_; | 91 content::NotificationRegistrar registrar_; |
| 91 | 92 |
| 92 // Used by screen-saver and full-screen handling support. | 93 // Used by screen-saver and full-screen handling support. |
| 93 bool is_user_active_; | 94 bool is_user_active_; |
| 94 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; | 95 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; |
| 95 | 96 |
| 96 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); | 97 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 100 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
| OLD | NEW |