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_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; | 79 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; |
80 | 80 |
81 // Removes notifications matching |profile_id|. Returns true if any were | 81 // Removes notifications matching |profile_id|. Returns true if any were |
82 // removed. | 82 // removed. |
83 virtual bool CancelAllByProfile(ProfileID profile_id) = 0; | 83 virtual bool CancelAllByProfile(ProfileID profile_id) = 0; |
84 | 84 |
85 // Cancels all pending notifications and closes anything currently showing. | 85 // Cancels all pending notifications and closes anything currently showing. |
86 // Used when the app is terminating. | 86 // Used when the app is terminating. |
87 virtual void CancelAll() = 0; | 87 virtual void CancelAll() = 0; |
88 | 88 |
| 89 // Cancels all pending notifications and closes anything currently showing. |
| 90 // After this is called, no new notifications can be added. Used when the app |
| 91 // is terminating. |
| 92 virtual void StartShutdown() = 0; |
| 93 |
89 protected: | 94 protected: |
90 NotificationUIManager() {} | 95 NotificationUIManager() {} |
91 | 96 |
92 private: | 97 private: |
93 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); | 98 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); |
94 }; | 99 }; |
95 | 100 |
96 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 101 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
OLD | NEW |