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

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

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: - Created 3 years, 10 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/notifications/notification_common.h
diff --git a/chrome/browser/notifications/notification_common.h b/chrome/browser/notifications/notification_common.h
index 280c84df461e0fe43a28fa0c4751d4f758392a2b..6b8d0b6be1b61f31c33422de92b0666953926bb7 100644
--- a/chrome/browser/notifications/notification_common.h
+++ b/chrome/browser/notifications/notification_common.h
@@ -5,6 +5,11 @@
#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
+#include <set>
+#include <string>
+
+#include "base/callback.h"
+
namespace content {
class BrowserContext;
} // namespace content
@@ -12,6 +17,10 @@ class BrowserContext;
// Shared functionality for both in page and persistent notification
class NotificationCommon {
public:
+ using NotificationResultCallback =
Peter Beverloo 2017/02/24 16:12:23 Let's define this type on the NotificationDisplayS
+ base::Callback<void(std::unique_ptr<std::set<std::string>>,
+ bool /* success */)>;
+
// Things as user can do to a notification.
enum Operation {
CLICK = 0,

Powered by Google App Engine
This is Rietveld 408576698