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

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

Issue 2828503005: Add NotificationDisplayServiceProxy (Closed)
Patch Set: Rebase 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_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 const std::string& profile_id, 22 const std::string& profile_id,
23 bool is_incognito, 23 bool is_incognito,
24 const Notification& notification) override; 24 const Notification& notification) override;
25 void Close(const std::string& profile_id, 25 void Close(const std::string& profile_id,
26 const std::string& notification_id) override; 26 const std::string& notification_id) override;
27 void GetDisplayed( 27 void GetDisplayed(
28 const std::string& profile_id, 28 const std::string& profile_id,
29 bool incognito, 29 bool incognito,
30 const GetDisplayedNotificationsCallback& callback) const override; 30 const GetDisplayedNotificationsCallback& callback) const override;
31 31
32 // Waits until the D-Bus connection has been created. Returns true 32 void IsConnected(const base::Callback<void(bool)>& callback);
33 // if the connection was successful.
34 bool BlockUntilReady();
35 33
36 private: 34 private:
37 class NativeNotificationThread; 35 class NativeNotificationThread;
38 36
39 std::unique_ptr<NativeNotificationThread> thread_; 37 std::unique_ptr<NativeNotificationThread> thread_;
40 38
41 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux); 39 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux);
42 }; 40 };
43 41
44 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ 42 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698