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

Side by Side Diff: chrome/browser/notifications/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 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_NOTIFICATION_DISPLAY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 24 matching lines...) Expand all
35 virtual void Display(NotificationCommon::Type notification_type, 35 virtual void Display(NotificationCommon::Type notification_type,
36 const std::string& notification_id, 36 const std::string& notification_id,
37 const Notification& notification) = 0; 37 const Notification& notification) = 0;
38 38
39 // Closes the notification identified by |notification_id|. 39 // Closes the notification identified by |notification_id|.
40 virtual void Close(NotificationCommon::Type notification_type, 40 virtual void Close(NotificationCommon::Type notification_type,
41 const std::string& notification_id) = 0; 41 const std::string& notification_id) = 0;
42 42
43 // Writes the ids of all currently displaying notifications and 43 // Writes the ids of all currently displaying notifications and
44 // invokes |callback| with the result once known. 44 // invokes |callback| with the result once known.
45 virtual void GetDisplayed( 45 virtual void GetDisplayed(const DisplayedNotificationsCallback& callback) = 0;
46 const DisplayedNotificationsCallback& callback) const = 0;
47 46
48 private: 47 private:
49 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); 48 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService);
50 }; 49 };
51 50
52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ 51 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698