OLD | NEW |
---|---|
(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 <map> | |
9 #include <string> | |
10 | |
11 #include "chrome/browser/profiles/profile.h" | |
12 #include "components/arc/arc_bridge_service.h" | |
13 #include "components/arc/common/arc_notification_types.h" | |
14 | |
15 namespace chromeos { | |
16 | |
17 class ArcNotificationItem; | |
18 | |
19 class ArcNotificationManager | |
20 : public arc::ArcBridgeService::NotificationObserver { | |
21 public: | |
22 explicit ArcNotificationManager(arc::ArcBridgeService* bridge_service, | |
23 Profile* main_profile); | |
24 ~ArcNotificationManager() override; | |
25 | |
26 // arc::ArcBridgeService::Observer implementation: | |
27 void OnNotificationPostedFromAndroid( | |
28 const arc::ArcNotificationData& data) override; | |
29 void OnNotificationRemovedFromAndroid(const std::string& key) override; | |
30 | |
31 // Methods called from ArcNotificationItem: | |
32 void NotifyNotificationRemovedFromChrome(const std::string& key); | |
elijahtaylor1
2015/12/09 06:41:26
same with the other CL, I think NotifyNotification
yoshiki
2015/12/09 17:11:09
Done.
| |
33 void NotifyNotificationClickedFromChrome(const std::string& key); | |
34 | |
35 private: | |
36 arc::ArcBridgeService* arc_bridge_; | |
37 Profile* main_profile_; | |
38 | |
39 typedef std::map<std::string, ArcNotificationItem*> Items; | |
40 Items items_; | |
41 }; | |
42 | |
43 } // namespace chromeos | |
44 | |
45 #endif // CHROME_BROWSER_CHROMEOS_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_ | |
OLD | NEW |