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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MAC_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_MAC_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_MAC_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_MAC_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/mac/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/notifications/alert_dispatcher_mac.h" 14 #include "chrome/browser/notifications/alert_dispatcher_mac.h"
15 #include "chrome/browser/notifications/notification_common.h" 15 #include "chrome/browser/notifications/notification_common.h"
16 #include "chrome/browser/notifications/notification_platform_bridge.h" 16 #include "chrome/browser/notifications/notification_platform_bridge.h"
17 17
18 class Notification; 18 class Notification;
19 @class NotificationCenterDelegate; 19 @class NotificationCenterDelegate;
20 @class NSDictionary; 20 @class NSDictionary;
21 @class NSUserNotificationCenter; 21 @class NSUserNotificationCenter;
22 @class NSXPCConnection; 22 @class NSXPCConnection;
23 class PrefService;
24 23
25 // This class is an implementation of NotificationPlatformBridge that will 24 // This class is an implementation of NotificationPlatformBridge that will
26 // send platform notifications to the the MacOSX notification center. 25 // send platform notifications to the the MacOSX notification center.
27 class NotificationPlatformBridgeMac : public NotificationPlatformBridge { 26 class NotificationPlatformBridgeMac : public NotificationPlatformBridge {
28 public: 27 public:
29 NotificationPlatformBridgeMac(NSUserNotificationCenter* notification_center, 28 NotificationPlatformBridgeMac(NSUserNotificationCenter* notification_center,
30 id<AlertDispatcher> alert_dispatcher); 29 id<AlertDispatcher> alert_dispatcher);
31 30
32 ~NotificationPlatformBridgeMac() override; 31 ~NotificationPlatformBridgeMac() override;
33 32
(...skipping 26 matching lines...) Expand all
60 // this can be overriden in tests. 59 // this can be overriden in tests.
61 base::scoped_nsobject<NSUserNotificationCenter> notification_center_; 60 base::scoped_nsobject<NSUserNotificationCenter> notification_center_;
62 61
63 // The object in charge of dispatching remote notifications. 62 // The object in charge of dispatching remote notifications.
64 base::scoped_nsprotocol<id<AlertDispatcher>> alert_dispatcher_; 63 base::scoped_nsprotocol<id<AlertDispatcher>> alert_dispatcher_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeMac); 65 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeMac);
67 }; 66 };
68 67
69 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_MAC_H_ 68 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_display_service.h ('k') | chrome/browser/notifications/notifier_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698