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

Side by Side Diff: chrome/browser/notifications/notification_ui_manager.h

Issue 2776933006: CrOS: Do not allow notifications to be added during shutdown. (Closed)
Patch Set: Trybots. Created 3 years, 8 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
« no previous file with comments | « chrome/browser/notifications/notification_test_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698