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

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

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: review 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 <gio/gio.h> 8 #include <gio/gio.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/notifications/notification_platform_bridge.h" 11 #include "chrome/browser/notifications/notification_platform_bridge.h"
12 12
13 class NotificationPlatformBridgeLinux : public NotificationPlatformBridge { 13 class NotificationPlatformBridgeLinux : public NotificationPlatformBridge {
14 public: 14 public:
15 explicit NotificationPlatformBridgeLinux(GDBusProxy* notification_proxy); 15 explicit NotificationPlatformBridgeLinux(GDBusProxy* notification_proxy);
16 16
17 ~NotificationPlatformBridgeLinux() override; 17 ~NotificationPlatformBridgeLinux() override;
18 18
19 // NotificationPlatformBridge: 19 // NotificationPlatformBridge:
20 void Display(NotificationCommon::Type notification_type, 20 void Display(NotificationCommon::Type notification_type,
21 const std::string& notification_id, 21 const std::string& notification_id,
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 GetDisplayedNotificationsCallback& callback) const override;
31 31
32 private: 32 private:
33 GDBusProxy* const notification_proxy_; 33 GDBusProxy* const notification_proxy_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux); 35 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_ 38 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698