OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 void Display(NotificationCommon::Type notification_type, | 26 void Display(NotificationCommon::Type notification_type, |
27 const std::string& notification_id, | 27 const std::string& notification_id, |
28 const std::string& profile_id, | 28 const std::string& profile_id, |
29 bool incognito, | 29 bool incognito, |
30 const Notification& notification) override; | 30 const Notification& notification) override; |
31 void Close(const std::string& profile_id, | 31 void Close(const std::string& profile_id, |
32 const std::string& notification_id) override; | 32 const std::string& notification_id) override; |
33 bool GetDisplayed(const std::string& profile_id, | 33 bool GetDisplayed(const std::string& profile_id, |
34 bool incognito, | 34 bool incognito, |
35 std::set<std::string>* notifications) const override; | 35 std::set<std::string>* notifications) const override; |
36 bool SupportsNotificationCenter() const override; | |
37 | 36 |
38 private: | 37 private: |
39 // Map of profile Ids to list of notifications shown for said profile. | 38 // Map of profile Ids to list of notifications shown for said profile. |
40 std::unordered_map<std::string, std::vector<Notification>> notifications_; | 39 std::unordered_map<std::string, std::vector<Notification>> notifications_; |
41 | 40 |
42 DISALLOW_COPY_AND_ASSIGN(StubNotificationPlatformBridge); | 41 DISALLOW_COPY_AND_ASSIGN(StubNotificationPlatformBridge); |
43 }; | 42 }; |
44 | 43 |
45 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ | 44 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ |
OLD | NEW |