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 // Protocol for the XPC notification service. |
| 14 @protocol NotificationDelivery |
| 15 |
| 16 // |notificationData| is generated using a NofiticationBuilder object. |
| 17 - (void)deliverNotification:(NSDictionary*)notificationData; |
| 18 |
| 19 @end |
| 20 |
| 21 // Response protocol for the XPC notification service to notify Chrome of |
| 22 // notification interactions. |
| 23 @protocol NotificationReply |
| 24 |
| 25 // |notificationResponseData| is generated through a |
| 26 // NotificationResponseBuilder. |
| 27 - (void)notificationClick:(NSDictionary*)notificationResponseData; |
| 28 |
| 29 @end |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
OLD | NEW |