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

Side by Side Diff: chrome/browser/chromeos/arc/notification/arc_notification_manager.h

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2015 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_CHROMEOS_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
7
8 #include <set>
9 #include <string>
10
11 #include "components/arc/arc_bridge_service.h"
12 #include "components/arc/common/arc_notification_types.h"
13
14 namespace chromeos {
15
16 class ArcNotificationItem;
17
18 class ArcNotificationManager : public arc::ArcBridgeService::Observer {
19 public:
20 ArcNotificationManager();
21 ~ArcNotificationManager() override;
22
23 // arc::ArcBridgeService::Observer implementation
24 void OnNotificationPostedFromAndroid(
25 const arc::ArcNotificationData& data) override;
26 void OnNotificationRemovedFromAndroid(const std::string& key) override;
27
28 // Methods called from ArcNotificationItem.
29 void NotifyNotificationRemovedFromChrome(const std::string& key);
30 void NotifyNotificationClickedFromChrome(const std::string& key);
31
32 private:
33 typedef std::map<std::string, ArcNotificationItem*> Items;
34 Items items_;
35 };
36
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698