OLD | NEW |
(Empty) | |
| 1 // 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 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // Collection of protocols used for XPC communication between chrome |
| 11 // and the alert notification xpc service. |
| 12 |
| 13 // Indicate the XPC service that it needs to display an alert. |
| 14 // |notificationData| is generated using a NofiticationBuilder object. |
| 15 @protocol NotificationDelivery |
| 16 |
| 17 - (void)deliverNotification:(NSDictionary*)notificationData; |
| 18 |
| 19 @end |
| 20 |
| 21 // Used to talk back from the XPC service to chrome upon a notification click. |
| 22 // |notificationResponseData| is generated through a |
| 23 // NotificationResponseBuilder. |
| 24 @protocol NotificationReply |
| 25 |
| 26 - (void)notificationClick:(NSDictionary*)notificationResponseData; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
OLD | NEW |