| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H
_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H
_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H
_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBACK_H
_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 | 11 |
| 12 // Callback used by the bridge and all the downstream classes that propagate | 12 // Callback used by the bridge and all the downstream classes that propagate |
| 13 // the callback to get displayed notifications. | 13 // the callback to get displayed notifications. |
| 14 using GetDisplayedNotificationsCallback = | 14 using GetDisplayedNotificationsCallback = |
| 15 base::Callback<void(std::unique_ptr<std::set<std::string>>, | 15 base::Callback<void(std::unique_ptr<std::set<std::string>>, |
| 16 bool /* supports_synchronization */)>; | 16 bool /* supports_synchronization */)>; |
| 17 | 17 |
| 18 using NotificationBridgeReadyCallback = |
| 19 base::OnceCallback<void(bool /* success */)>; |
| 20 |
| 18 #endif // CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBAC
K_H_ | 21 #endif // CHROME_BROWSER_NOTIFICATIONS_DISPLAYED_NOTIFICATIONS_DISPATCH_CALLBAC
K_H_ |
| OLD | NEW |