Chromium Code Reviews| Index: chrome/browser/notifications/notification_platform_bridge_mac.h |
| diff --git a/chrome/browser/notifications/notification_platform_bridge_mac.h b/chrome/browser/notifications/notification_platform_bridge_mac.h |
| index 7b8a892abbffba92841496f0d81d5afbe8d725e8..9133493e183f1e445bd58595f47871c67e90aeb0 100644 |
| --- a/chrome/browser/notifications/notification_platform_bridge_mac.h |
| +++ b/chrome/browser/notifications/notification_platform_bridge_mac.h |
| @@ -11,12 +11,12 @@ |
| #include "base/compiler_specific.h" |
| #include "base/mac/scoped_nsobject.h" |
| #include "base/macros.h" |
| +#include "chrome/browser/notifications/alert_dispatcher.h" |
| #include "chrome/browser/notifications/notification_common.h" |
| #include "chrome/browser/notifications/notification_platform_bridge.h" |
| class Notification; |
| @class NotificationCenterDelegate; |
| -@class NotificationRemoteDispatcher; |
| @class NSDictionary; |
| @class NSUserNotificationCenter; |
| @class NSXPCConnection; |
| @@ -26,8 +26,10 @@ class PrefService; |
| // send platform notifications to the the MacOSX notification center. |
| class NotificationPlatformBridgeMac : public NotificationPlatformBridge { |
| public: |
| - explicit NotificationPlatformBridgeMac( |
| - NSUserNotificationCenter* notification_center); |
| + NotificationPlatformBridgeMac( |
| + NSUserNotificationCenter* notification_center, |
| + id<AlertDispatcher> alert_dispatcher /* strong */); |
| + |
| ~NotificationPlatformBridgeMac() override; |
| // NotificationPlatformBridge implementation. |
| @@ -36,6 +38,7 @@ class NotificationPlatformBridgeMac : public NotificationPlatformBridge { |
| const std::string& profile_id, |
| bool incognito, |
| const Notification& notification) override; |
| + |
| void Close(const std::string& profile_id, |
| const std::string& notification_id) override; |
| bool GetDisplayed(const std::string& profile_id, |
| @@ -59,8 +62,8 @@ class NotificationPlatformBridgeMac : public NotificationPlatformBridge { |
| NSUserNotificationCenter* notification_center_; |
| // The object in charge of dispatching remote notifications. |
| - base::scoped_nsobject<NotificationRemoteDispatcher> |
| - notification_remote_dispatcher_; |
| + // id<AlertDispatcher> |
|
Robert Sesek
2016/11/11 19:21:16
Can remove now.
Miguel Garcia
2016/11/21 11:57:56
Done.
|
| + base::scoped_nsprotocol<id<AlertDispatcher>> alert_dispatcher_; |
| DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeMac); |
| }; |