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_ |