| Index: chrome/browser/notifications/notification_ui_manager.h
|
| diff --git a/chrome/browser/notifications/notification_ui_manager.h b/chrome/browser/notifications/notification_ui_manager.h
|
| index d86a9a578492f206dd9c001ae2b216d42643d76c..78148357ca00f795ee5e5c00205b58cc0778d1bf 100644
|
| --- a/chrome/browser/notifications/notification_ui_manager.h
|
| +++ b/chrome/browser/notifications/notification_ui_manager.h
|
| @@ -45,6 +45,12 @@ class NotificationUIManager {
|
| // crbug.com/530376
|
| static NotificationUIManager* Create(PrefService* local_state);
|
|
|
| +// Some platforms can integrate their notifications with their own
|
| +// notification center.
|
| +#if defined(OS_MACOSX)
|
| + static NotificationUIManager* CreateNativeNotificationManager();
|
| +#endif
|
| +
|
| // Adds a notification to be displayed. Virtual for unit test override.
|
| virtual void Add(const Notification& notification, Profile* profile) = 0;
|
|
|
| @@ -89,6 +95,10 @@ class NotificationUIManager {
|
| // Used when the app is terminating.
|
| virtual void CancelAll() = 0;
|
|
|
| + // Return whether the notification center can be used for native
|
| + // notifications.
|
| + virtual bool AcceptNativeNotifications() = 0;
|
| +
|
| protected:
|
| NotificationUIManager() {}
|
|
|
|
|