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

Side by Side Diff: chrome/browser/notifications/displayed_notifications_dispatch_callback.h

Issue 2821533003: Refactor NotificationPlatformBridgeLinux (Closed)
Patch Set: fix compile errors 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 unified diff | Download patch
OLDNEW
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 =
Peter Beverloo 2017/04/26 13:53:36 micro nit: make this a public member of Notificati
Tom (Use chromium acct) 2017/04/26 17:56:53 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698