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 <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_ |
OLD | NEW |