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

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

Issue 1814923002: Nuke NotificationUIManager from PlatformNotificationServiceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@profile_manager_load
Patch Set: Created 4 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2016 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_CHROME_NOTIFICATION_DISPLAY_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_CHROME_NOTIFICATION_DISPLAY_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/notifications/notification_display_service.h"
10
11 class Notification;
12 class NotificationUIManager;
13 class Profile;
14
15 // Implementation of display service for notifications displayed by chrome
Peter Beverloo 2016/04/18 14:57:09 Meta question: should we have a MessageCenterNotif
Peter Beverloo 2016/04/18 14:57:09 Could we call this MessageCenter(Notification)Disp
Miguel Garcia 2016/04/19 14:24:57 Discussed offline, I found myself converting back
Miguel Garcia 2016/04/19 14:24:57 OK, it seemed more descriptive this way, went with
16 // instead of the native platform notification center.
17 class ChromeNotificationDisplayService : public NotificationDisplayService {
18 public:
19 ChromeNotificationDisplayService(Profile* profile,
20 NotificationUIManager* ui_manager);
21 ~ChromeNotificationDisplayService() override;
22
23 void Display(const std::string& notification_id,
Peter Beverloo 2016/04/18 14:57:09 nit: // NotificationDisplayService implementation
Miguel Garcia 2016/04/19 14:24:57 Done.
24 const Notification& notification) override;
25 void Close(const std::string& notification_id) override;
26 bool GetDisplayed(std::set<std::string>* notifications) const override;
27 bool SupportsNotificationCenter() const override;
28
29 private:
30 Profile* profile_;
31 NotificationUIManager* ui_manager_;
32
33 DISALLOW_COPY_AND_ASSIGN(ChromeNotificationDisplayService);
34 };
35
36 #endif // CHROME_BROWSER_NOTIFICATIONS_CHROME_NOTIFICATION_DISPLAY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698