OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILE_NOTIFICATION_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PROFILE_NOTIFICATION_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_PROFILE_NOTIFICATION_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_PROFILE_NOTIFICATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 static std::string GetProfileNotificationId(const std::string& delegate_id, | 21 static std::string GetProfileNotificationId(const std::string& delegate_id, |
22 ProfileID profile_id); | 22 ProfileID profile_id); |
23 | 23 |
24 ProfileNotification(Profile* profile, const Notification& notification); | 24 ProfileNotification(Profile* profile, const Notification& notification); |
25 ~ProfileNotification(); | 25 ~ProfileNotification(); |
26 | 26 |
27 Profile* profile() const { return profile_; } | 27 Profile* profile() const { return profile_; } |
28 const Notification& notification() const { return notification_; } | 28 const Notification& notification() const { return notification_; } |
29 | 29 |
30 private: | 30 private: |
31 friend class MessageCenterNotificationManager; | |
32 void CopyNotificationState(message_center::Notification* base) { | |
33 notification_.CopyState(base); | |
34 } | |
Jun Mukai
2015/04/08 00:13:19
Similarly this isn't necessary anymore.
# state ou
yoshiki
2015/04/08 00:54:05
Removed.
| |
35 | |
31 // Weak, guaranteed not to be used after profile removal by parent class. | 36 // Weak, guaranteed not to be used after profile removal by parent class. |
32 Profile* profile_; | 37 Profile* profile_; |
33 | 38 |
34 Notification notification_; | 39 Notification notification_; |
35 }; | 40 }; |
36 | 41 |
37 #endif // CHROME_BROWSER_NOTIFICATIONS_PROFILE_NOTIFICATION_H_ | 42 #endif // CHROME_BROWSER_NOTIFICATIONS_PROFILE_NOTIFICATION_H_ |
OLD | NEW |