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

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

Issue 247943003: Allow compiling Android with notifications=1, add stubbed UI manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
7
8 #include "chrome/browser/notifications/notification_ui_manager.h"
9
10 // Implementation of the Notification UI Manager for Android, which defers to
11 // the Android framework for displaying notifications.
12 class NotificationUIManagerAndroid : public NotificationUIManager {
13 public:
14 NotificationUIManagerAndroid();
15 virtual ~NotificationUIManagerAndroid();
16
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(
22 const std::string& notification_id) const OVERRIDE;
23 virtual bool CancelById(const std::string& notification_id) OVERRIDE;
24 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
25 Profile* profile,
26 const GURL& source) OVERRIDE;
27 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
28 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
29 virtual void CancelAll() OVERRIDE;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid);
33 };
34
35 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698