OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_DISPLAY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const Notification& notification) override; | 44 const Notification& notification) override; |
45 void Close(NotificationCommon::Type notification_type, | 45 void Close(NotificationCommon::Type notification_type, |
46 const std::string& notification_id) override; | 46 const std::string& notification_id) override; |
47 void GetDisplayed(const DisplayedNotificationsCallback& callback) override; | 47 void GetDisplayed(const DisplayedNotificationsCallback& callback) override; |
48 | 48 |
49 private: | 49 private: |
50 // Data to store for a notification that's being shown through this service. | 50 // Data to store for a notification that's being shown through this service. |
51 using NotificationData = std::pair<NotificationCommon::Type, Notification>; | 51 using NotificationData = std::pair<NotificationCommon::Type, Notification>; |
52 | 52 |
53 std::vector<NotificationData> notifications_; | 53 std::vector<NotificationData> notifications_; |
| 54 Profile* profile_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(StubNotificationDisplayService); | 56 DISALLOW_COPY_AND_ASSIGN(StubNotificationDisplayService); |
56 }; | 57 }; |
57 | 58 |
58 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ | 59 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ |
OLD | NEW |