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. |
+// |notificationData| is generated using a NofiticationBuilder object. |
+@protocol NotificationDelivery |
+ |
+- (void)deliverNotification:(NSDictionary*)notificationData; |
+ |
+@end |
+ |
+// Used to talk back from the XPC service to chrome upon a notification click. |
+// |notificationResponseData| is generated through a |
+// NotificationResponseBuilder. |
+@protocol NotificationReply |
+ |
+- (void)notificationClick:(NSDictionary*)notificationResponseData; |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_ |