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

Unified Diff: chrome/browser/notifications/notification_display_service.h

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: - Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_display_service.h
diff --git a/chrome/browser/notifications/notification_display_service.h b/chrome/browser/notifications/notification_display_service.h
index 003274a60c48c6039f9c85e73ecacb2a94440c4f..d0420ba3c7b93f70daf3041c27f544de016c81a8 100644
--- a/chrome/browser/notifications/notification_display_service.h
+++ b/chrome/browser/notifications/notification_display_service.h
@@ -21,7 +21,6 @@ class Profile;
// instance can be retrieved through the NotificationDisplayServiceFactory.
//
// TODO(peter): Add a NotificationHandler mechanism for registering listeners.
-// TODO(miguelg): Remove the SupportsNotificationCenter method.
class NotificationDisplayService : public KeyedService {
public:
NotificationDisplayService() {}
@@ -40,6 +39,11 @@ class NotificationDisplayService : public KeyedService {
// notifications and stores them in |*notification_ids| when possible.
virtual bool GetDisplayed(std::set<std::string>* notifications) const = 0;
+ // Async version of the GetDisplayed
+ // TODO(miguelg) Remove the sync version once all paths have been migrated.
+ virtual void GetDisplayedAsync(
Peter Beverloo 2017/02/24 16:12:23 It would be much easier if you would change this a
Miguel Garcia 2017/03/22 22:00:06 Yeah Async was temporary, I am however if I should
+ const NotificationCommon::NotificationResultCallback& callback) const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService);
};

Powered by Google App Engine
This is Rietveld 408576698