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

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

Issue 695853002: Include Web Notifications on Android at build-time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt 2 Created 6 years, 1 month 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
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/notifications/notification_ui_manager_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_UI_MANAGER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
7 7
8 #include "chrome/browser/notifications/notification_ui_manager.h" 8 #include "chrome/browser/notifications/notification_ui_manager.h"
9 9
10 // Implementation of the Notification UI Manager for Android, which defers to 10 // Implementation of the Notification UI Manager for Android, which defers to
11 // the Android framework for displaying notifications. 11 // the Android framework for displaying notifications.
12 class NotificationUIManagerAndroid : public NotificationUIManager { 12 class NotificationUIManagerAndroid : public NotificationUIManager {
13 public: 13 public:
14 NotificationUIManagerAndroid(); 14 NotificationUIManagerAndroid();
15 virtual ~NotificationUIManagerAndroid(); 15 ~NotificationUIManagerAndroid() override;
16 16
17 // NotificationUIManager implementation; 17 // NotificationUIManager implementation;
18 virtual void Add(const Notification& notification, Profile* profile) override; 18 void Add(const Notification& notification, Profile* profile) override;
19 virtual bool Update(const Notification& notification, 19 bool Update(const Notification& notification,
20 Profile* profile) override; 20 Profile* profile) override;
21 virtual const Notification* FindById(const std::string& delegate_id, 21 const Notification* FindById(const std::string& delegate_id,
22 ProfileID profile_id) const override; 22 ProfileID profile_id) const override;
23 virtual bool CancelById(const std::string& delegate_id, 23 bool CancelById(const std::string& delegate_id,
24 ProfileID profile_id) override; 24 ProfileID profile_id) override;
25 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 25 std::set<std::string> GetAllIdsByProfileAndSourceOrigin(Profile* profile,
26 Profile* profile, 26 const GURL& source)
27 const GURL& source) override; 27 override;
28 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) override; 28 bool CancelAllBySourceOrigin(const GURL& source_origin) override;
29 virtual bool CancelAllByProfile(Profile* profile) override; 29 bool CancelAllByProfile(ProfileID profile_id) override;
30 virtual void CancelAll() override; 30 void CancelAll() override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid); 33 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerAndroid);
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_ 36 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/notifications/notification_ui_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698