Index: chrome/browser/notifications/alert_dispatcher.h |
diff --git a/chrome/browser/notifications/alert_dispatcher.h b/chrome/browser/notifications/alert_dispatcher.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a745cf86c1da16cdf983028c613ad83d80fd7c87 |
--- /dev/null |
+++ b/chrome/browser/notifications/alert_dispatcher.h |
@@ -0,0 +1,23 @@ |
+// 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_NOTIFICATIONS_ALERT_DISPATCHER_H_ |
+#define CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_H_ |
+ |
+// Interface to communicate with the Alert XPC service. |
+@protocol AlertDispatcher<NSObject> |
Robert Sesek
2016/11/07 17:51:18
Need to #import Foundation.h for this protocol.
Miguel Garcia
2016/11/10 12:46:51
Done.
|
+ |
+// Deliver a notification to the XPC service to be displayed as an alert. |
+- (void)dispatchNotification:(NSDictionary*)data; |
+ |
+// Close a notification for a given |notificationId| and |profileId|. |
+- (void)closeNotificationWithId:(NSString*)notificationId |
+ withProfileId:(NSString*)profileId; |
+ |
+// Close all notifications. |
+- (void)closeAllNotifications; |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_H_ |