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 19 matching lines...) Expand all Loading... |
30 const std::string& notification_id, | 30 const std::string& notification_id, |
31 const std::string& profile_id, | 31 const std::string& profile_id, |
32 bool incognito, | 32 bool incognito, |
33 const Notification& notification) override; | 33 const Notification& notification) override; |
34 void Close(const std::string& profile_id, | 34 void Close(const std::string& profile_id, |
35 const std::string& notification_id) override; | 35 const std::string& notification_id) override; |
36 void GetDisplayed( | 36 void GetDisplayed( |
37 const std::string& profile_id, | 37 const std::string& profile_id, |
38 bool incognito, | 38 bool incognito, |
39 const GetDisplayedNotificationsCallback& callback) const override; | 39 const GetDisplayedNotificationsCallback& callback) const override; |
| 40 void SetReadyCallback(NotificationBridgeReadyCallback callback) override; |
40 | 41 |
41 private: | 42 private: |
42 // Map of profile Ids to list of notifications shown for said profile. | 43 // Map of profile Ids to list of notifications shown for said profile. |
43 std::unordered_map<std::string, std::vector<Notification>> notifications_; | 44 std::unordered_map<std::string, std::vector<Notification>> notifications_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(StubNotificationPlatformBridge); | 46 DISALLOW_COPY_AND_ASSIGN(StubNotificationPlatformBridge); |
46 }; | 47 }; |
47 | 48 |
48 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ | 49 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_PLATFORM_BRIDGE_H_ |
OLD | NEW |