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

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

Issue 2714743002: Retrive displayed notifications asynchronously
Patch Set: apply review comments from https://codereview.chromium.org/2709213005/ 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
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_display_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/alert_dispatcher_mac.h
diff --git a/chrome/browser/notifications/alert_dispatcher_mac.h b/chrome/browser/notifications/alert_dispatcher_mac.h
index ee2744c29e183d68a1c4ee6e462dbfa76bed14fd..10b1d063ec8e8288c87fad29d34a3b524f74eba2 100644
--- a/chrome/browser/notifications/alert_dispatcher_mac.h
+++ b/chrome/browser/notifications/alert_dispatcher_mac.h
@@ -1,3 +1,4 @@
+
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,6 +8,8 @@
#import <Foundation/Foundation.h>
+#include "chrome/browser/notifications/notification_common.h"
+
// Interface to communicate with the Alert XPC service.
@protocol AlertDispatcher<NSObject>
@@ -20,6 +23,12 @@
// Close all notifications.
- (void)closeAllNotifications;
+// Get currently displayed notifications.
+- (void)
+getDisplayedAlertsForProfileId:(NSString*)profileId
+ withLocalNotifications:(NSArray*)localNotifications
+ callback:(NotificationCommon::NotificationResultCallback)
+ callback;
@end
#endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_display_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698