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

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

Issue 2479143003: Add tests for the XPC client. (Closed)
Patch Set: rename alert_dispatcher.h to alert_dispatcher_mac.h and add it to the BUILD.gn file 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/notifications/notification_platform_bridge_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/alert_dispatcher_mac.h
diff --git a/chrome/browser/notifications/alert_dispatcher_mac.h b/chrome/browser/notifications/alert_dispatcher_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee2744c29e183d68a1c4ee6e462dbfa76bed14fd
--- /dev/null
+++ b/chrome/browser/notifications/alert_dispatcher_mac.h
@@ -0,0 +1,25 @@
+// 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_MAC_H_
+#define CHROME_BROWSER_NOTIFICATIONS_ALERT_DISPATCHER_MAC_H_
+
+#import <Foundation/Foundation.h>
+
+// Interface to communicate with the Alert XPC service.
+@protocol AlertDispatcher<NSObject>
+
+// 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_MAC_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/notifications/notification_platform_bridge_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698