OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
Lei Zhang
2017/04/04 07:47:21
It's 2017. :)
Tom (Use chromium acct)
2017/04/04 21:47:11
Done.
| |
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 #include "ui/message_center/message_center.h" | |
13 | |
14 class NotificationPlatformBridgeLinux : public NotificationPlatformBridge { | |
15 public: | |
16 NotificationPlatformBridgeLinux(message_center::MessageCenter* message_center, | |
17 GDBusProxy* notification_proxy); | |
18 | |
19 ~NotificationPlatformBridgeLinux() override; | |
20 | |
21 // Overridden from NotificationPlatformBridge. | |
Lei Zhang
2017/04/04 07:47:21
Just // NotificationPlatformBridge: will suffice.
Tom (Use chromium acct)
2017/04/04 21:47:10
Done.
| |
22 void Display(NotificationCommon::Type notification_type, | |
23 const std::string& notification_id, | |
24 const std::string& profile_id, | |
25 bool is_incognito, | |
26 const Notification& notification) override; | |
27 void Close(const std::string& profile_id, | |
28 const std::string& notification_id) override; | |
29 void GetDisplayed( | |
30 const std::string& profile_id, | |
31 bool incognito, | |
32 const DisplayedNotificationsCallback& callback) const override; | |
33 | |
34 private: | |
35 message_center::MessageCenter* message_center_; | |
36 | |
37 GDBusProxy* notification_proxy_; | |
Lei Zhang
2017/04/04 07:47:21
GDBusProxy* const, or maybe use ScopedGObject?
Tom (Use chromium acct)
2017/04/04 21:47:11
Done.
| |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux); | |
40 }; | |
41 | |
42 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ | |
OLD | NEW |