OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ |
| 7 |
| 8 #include <gio/gio.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/notifications/notification_platform_bridge.h" |
| 12 |
| 13 class NotificationPlatformBridgeLinux : public NotificationPlatformBridge { |
| 14 public: |
| 15 explicit NotificationPlatformBridgeLinux(GDBusProxy* notification_proxy); |
| 16 |
| 17 ~NotificationPlatformBridgeLinux() override; |
| 18 |
| 19 // NotificationPlatformBridge: |
| 20 void Display(NotificationCommon::Type notification_type, |
| 21 const std::string& notification_id, |
| 22 const std::string& profile_id, |
| 23 bool is_incognito, |
| 24 const Notification& notification) override; |
| 25 void Close(const std::string& profile_id, |
| 26 const std::string& notification_id) override; |
| 27 void GetDisplayed( |
| 28 const std::string& profile_id, |
| 29 bool incognito, |
| 30 const DisplayedNotificationsCallback& callback) const override; |
| 31 |
| 32 private: |
| 33 GDBusProxy* const notification_proxy_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ |
OLD | NEW |