Chromium Code Reviews| Index: chrome/browser/ui/cocoa/notifications/notification_delivery.h |
| diff --git a/chrome/browser/ui/cocoa/notifications/notification_delivery.h b/chrome/browser/ui/cocoa/notifications/notification_delivery.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..69a646eb4dba8ac2b422061206f6cb8206243c27 |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/notifications/notification_delivery.h |
| @@ -0,0 +1,30 @@ |
| +// 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. |
| + |
| +#ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
| +#define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +// Collection of protocols used for XPC communication between chrome |
| +// and the alert notification xpc service. |
| + |
| +// 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.
|
| +// |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.
|
| +@protocol NotificationDelivery |
| + |
| +- (void)deliverNotification:(NSDictionary*)notificationData; |
| + |
| +@end |
| + |
| +// 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.
|
| +// |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.
|
| +// NotificationResponseBuilder. |
| +@protocol NotificationReply |
| + |
| +- (void)notificationClick:(NSDictionary*)notificationResponseData; |
| + |
| +@end |
| + |
| +#endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |