Chromium Code Reviews| 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_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 Loading... | |
| 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 DisplayedNotificationsCallback& callback) const override; | 30 const DisplayedNotificationsCallback& 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); |
|
Peter Beverloo
2017/04/19 13:26:41
nit: there's a bunch of massive refactoring CLs in
Tom (Use chromium acct)
2017/04/20 01:43:47
Done.
| |
| 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_ |
| OLD | NEW |