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

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

Issue 2047643003: DO NOT SUBMIT. Implement an XPCService for notifications. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to use AlertNotificationService Created 4 years, 5 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..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_

Powered by Google App Engine
This is Rietveld 408576698