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

Unified Diff: chrome/browser/notifications/notification_platform_bridge_mac.h

Issue 2047643003: DO NOT SUBMIT. Implement an XPCService for notifications. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to use AlertNotificationService Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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 b48f1896242ed15cd148a6a7da6496afe8c9acb1..ebcb5e8a5b26a9c689322249637c51636b5db1b6 100644
--- a/chrome/browser/notifications/notification_platform_bridge_mac.h
+++ b/chrome/browser/notifications/notification_platform_bridge_mac.h
@@ -19,6 +19,17 @@ class Notification;
@class NSDictionary;
@class NSUserNotificationCenter;
class PrefService;
+@class NSXPCConnection;
+
+@interface NotificationRemoteDispatcher : NSObject
+
+// The connection to the XPC server in charge of delivering alerts
+@property(readonly) NSXPCConnection* xpcConnection;
+
+- (instancetype)init;
+- (void)dispatchNotification:(NSDictionary*)data;
+
+@end
// This class is an implementation of NotificationPlatformBridge that will
// send platform notifications to the the MacOSX notification center.
@@ -49,9 +60,14 @@ class NotificationPlatformBridgeMac : public NotificationPlatformBridge {
// Cocoa class that receives callbacks from the NSUserNotificationCenter.
base::scoped_nsobject<NotificationCenterDelegate> delegate_;
- // The notification center to use, this can be overriden in tests
+ // The notification center to use for local banner notifications,
+ // this can be overriden in tests
NSUserNotificationCenter* notification_center_;
+ // The object in charge of dispatching remote notifications
+ base::scoped_nsobject<NotificationRemoteDispatcher>
+ notification_remote_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeMac);
};
« no previous file with comments | « chrome/app/theme/chromium/BRANDING ('k') | chrome/browser/notifications/notification_platform_bridge_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698