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

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

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: review Created 3 years, 8 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/displayed_notifications_dispatch_callback.h
diff --git a/chrome/browser/notifications/displayed_notifications_dispatch_callback.h b/chrome/browser/notifications/displayed_notifications_dispatch_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..1186aac7e0627bde28e6e371f499d47f1014fe83
--- /dev/null
+++ b/chrome/browser/notifications/displayed_notifications_dispatch_callback.h
@@ -0,0 +1,18 @@
+// Copyright 2017 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_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H_
+#define CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H_
+
+#include <set>
+
+#include "base/callback.h"
+
+// Callback used by the bridge and all the downstream classes that propagate
+// the callback to get displayed notifications.
+using GetDisplayedNotificationsCallback =
+ base::Callback<void(std::unique_ptr<std::set<std::string>>,
+ bool /* supports_synchronization */)>;
+
+#endif // CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H_
« no previous file with comments | « chrome/browser/notifications/alert_dispatcher_mac.h ('k') | chrome/browser/notifications/notification_platform_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698