Chromium Code Reviews| 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. | |
|
Robert Sesek
2016/09/08 21:10:08
"Protocol for the XPC notification service."
Miguel Garcia
2016/09/12 13:49:00
Done.
| |
| 14 // |notificationData| is generated using a NofiticationBuilder object. | |
|
Robert Sesek
2016/09/08 21:10:09
This should be next to -deliverNotification:.
Miguel Garcia
2016/09/12 13:49:01
Done.
| |
| 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. | |
|
Robert Sesek
2016/09/08 21:10:09
"Response protocol for the XPC notification servic
Miguel Garcia
2016/09/12 13:49:01
Done.
| |
| 22 // |notificationResponseData| is generated through a | |
|
Robert Sesek
2016/09/08 21:10:08
Move down next to the method.
Miguel Garcia
2016/09/12 13:49:01
Done.
| |
| 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 |