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

Unified Diff: chrome/browser/notifications/alert_dispatcher.h

Issue 2479143003: Add tests for the XPC client. (Closed)
Patch Set: Created 4 years, 1 month 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/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_

Powered by Google App Engine
This is Rietveld 408576698