1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
8 #include "chrome/browser/notifications/notification_ui_manager.h"
10 // Implementation of the Notification UI Manager for Android, which defers to
11 // the Android framework for displaying notifications.
12 class NotificationUIManagerAndroid
: public NotificationUIManager
{
14 NotificationUIManagerAndroid();
15 virtual ~NotificationUIManagerAndroid();
17 // NotificationUIManager implementation;
18 virtual void Add(const Notification
& notification
, Profile
* profile
) override
;
19 virtual bool Update(const Notification
& notification
,
20 Profile
* profile
) override
;
21 virtual const Notification
* FindById(const std::string
& delegate_id
,
22 ProfileID profile_id
) const override
;
23 virtual bool CancelById(const std::string
& delegate_id
,
24 ProfileID profile_id
) override
;
25 virtual std::set
<std::string
> GetAllIdsByProfileAndSourceOrigin(
27 const GURL
& source
) override
;
28 virtual bool CancelAllBySourceOrigin(const GURL
& source_origin
) override
;
29 virtual bool CancelAllByProfile(Profile
* profile
) override
;
30 virtual void CancelAll() override
;
33 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid
);
36 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_