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

Side by Side 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, 9 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 | « no previous file | chrome/browser/notifications/message_center_display_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 4 // found in the LICENSE file.
4 5
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_ 6 #ifndef CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_ 7 #define CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
7 8
8 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
9 10
11 #include "chrome/browser/notifications/notification_common.h"
12
10 // Interface to communicate with the Alert XPC service. 13 // Interface to communicate with the Alert XPC service.
11 @protocol AlertDispatcher<NSObject> 14 @protocol AlertDispatcher<NSObject>
12 15
13 // Deliver a notification to the XPC service to be displayed as an alert. 16 // Deliver a notification to the XPC service to be displayed as an alert.
14 - (void)dispatchNotification:(NSDictionary*)data; 17 - (void)dispatchNotification:(NSDictionary*)data;
15 18
16 // Close a notification for a given |notificationId| and |profileId|. 19 // Close a notification for a given |notificationId| and |profileId|.
17 - (void)closeNotificationWithId:(NSString*)notificationId 20 - (void)closeNotificationWithId:(NSString*)notificationId
18 withProfileId:(NSString*)profileId; 21 withProfileId:(NSString*)profileId;
19 22
20 // Close all notifications. 23 // Close all notifications.
21 - (void)closeAllNotifications; 24 - (void)closeAllNotifications;
22 25
26 // Get currently displayed notifications.
27 - (void)
28 getDisplayedAlertsForProfileId:(NSString*)profileId
29 withLocalNotifications:(NSArray*)localNotifications
30 callback:(NotificationCommon::NotificationResultCallback)
31 callback;
23 @end 32 @end
24 33
25 #endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_ 34 #endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
OLDNEW
« 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