Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: chrome/browser/notifications/stub_notification_display_service.h

Issue 2813943002: Drop the const modifier on NotificationDisplayService::GetDisplayed (Closed)
Patch Set: sync and rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 // Removes all notifications shown by this display service. 35 // Removes all notifications shown by this display service.
36 void RemoveAllNotifications(NotificationCommon::Type notification_type, 36 void RemoveAllNotifications(NotificationCommon::Type notification_type,
37 bool by_user); 37 bool by_user);
38 38
39 // NotificationDisplayService implementation: 39 // NotificationDisplayService implementation:
40 void Display(NotificationCommon::Type notification_type, 40 void Display(NotificationCommon::Type notification_type,
41 const std::string& notification_id, 41 const std::string& notification_id,
42 const Notification& notification) override; 42 const Notification& notification) override;
43 void Close(NotificationCommon::Type notification_type, 43 void Close(NotificationCommon::Type notification_type,
44 const std::string& notification_id) override; 44 const std::string& notification_id) override;
45 void GetDisplayed( 45 void GetDisplayed(const DisplayedNotificationsCallback& callback) override;
46 const DisplayedNotificationsCallback& callback) const override;
47 46
48 private: 47 private:
49 // Data to store for a notification that's being shown through this service. 48 // Data to store for a notification that's being shown through this service.
50 using NotificationData = std::pair<NotificationCommon::Type, Notification>; 49 using NotificationData = std::pair<NotificationCommon::Type, Notification>;
51 50
52 std::vector<NotificationData> notifications_; 51 std::vector<NotificationData> notifications_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(StubNotificationDisplayService); 53 DISALLOW_COPY_AND_ASSIGN(StubNotificationDisplayService);
55 }; 54 };
56 55
57 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_ 56 #endif // CHROME_BROWSER_NOTIFICATIONS_STUB_NOTIFICATION_DISPLAY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698