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

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

Issue 2794103002: Add initial support for native Linux desktop notifications (Closed)
Patch Set: Remove unused import 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698