Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: chrome/browser/ui/cocoa/notifications/notification_delivery.h

Issue 2158463003: Initial client side implementation of the XPC service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..e19593f4e45fe8dd85e01ceaec26642e6b53aefa
--- /dev/null
+++ b/chrome/browser/ui/cocoa/notifications/notification_delivery.h
@@ -0,0 +1,31 @@
+// 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.
+
+// Protocol for the XPC notification service.
+@protocol NotificationDelivery
+
+// |notificationData| is generated using a NofiticationBuilder object.
+- (void)deliverNotification:(NSDictionary*)notificationData;
+
+@end
+
+// Response protocol for the XPC notification service to notify Chrome of
+// notification interactions.
+@protocol NotificationReply
+
+// |notificationResponseData| is generated through a
+// NotificationResponseBuilder.
+- (void)notificationClick:(NSDictionary*)notificationResponseData;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_NOTIFICATION_DELIVERY_H_

Powered by Google App Engine
This is Rietveld 408576698