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

Side by Side Diff: chrome/browser/notifications/native_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_NATIVE_NOTIFICATION_DISPLAY_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NATIVE_NOTIFICATION_DISPLAY_SERVICE_H_
7
8 #include <set>
9 #include <string>
10 #include "base/macros.h"
11 #include "chrome/browser/notifications/notification_display_service.h"
12
13 class Notification;
14 class NotificationBridge;
15 class Profile;
16
17 // A class to display and interact with notifications in native notification
18 // centers on platforms that support it..
Peter Beverloo 2016/04/18 14:57:09 micro nit: no double points...
Miguel Garcia 2016/04/19 14:24:57 Done.
19 class NativeNotificationDisplayService : public NotificationDisplayService {
20 public:
21 NativeNotificationDisplayService(Profile* profile,
22 NotificationBridge* notification_bridge);
23 ~NativeNotificationDisplayService() override;
24
25 // NotificationDisplayServiceImplementation.
Peter Beverloo 2016/04/18 14:57:09 // NotificationDisplayService implementation.
Miguel Garcia 2016/04/19 14:24:57 Done.
26 void Display(const std::string& notification_id,
27 const Notification& notification) override;
28 void Close(const std::string& notification_id) override;
29 bool GetDisplayed(std::set<std::string>* notifications) const override;
30 bool SupportsNotificationCenter() const override;
31
32 private:
33 Profile* profile_;
34 NotificationBridge* notification_bridge_;
35
36 DISALLOW_COPY_AND_ASSIGN(NativeNotificationDisplayService);
37 };
38
39 #endif // CHROME_BROWSER_NOTIFICATIONS_NATIVE_NOTIFICATION_DISPLAY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698