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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile Created 3 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h"
11 #include "ui/message_center/notification_delegate.h" 10 #include "ui/message_center/notification_delegate.h"
12 11
13 // Delegate for a notification. This class has two roles: to implement callback 12 // Delegate for a notification. This class has two roles: to implement callback
14 // methods for notification, and to provide an identity of the associated 13 // methods for notification, and to provide an identity of the associated
15 // notification. 14 // notification.
16 class NotificationDelegate : public message_center::NotificationDelegate { 15 class NotificationDelegate : public message_center::NotificationDelegate {
17 public: 16 public:
18 // Returns unique id of the notification. 17 // Returns unique id of the notification.
19 virtual std::string id() const = 0; 18 virtual std::string id() const = 0;
20 19
21 protected: 20 protected:
22 ~NotificationDelegate() override {} 21 ~NotificationDelegate() override {}
23 }; 22 };
24 23
25 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_ 24 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_common.cc ('k') | chrome/browser/notifications/notification_display_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698