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

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

Issue 1005393003: [Download Notification] Use NotificationUIManager instead of MessageCenter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not stop ongoing download when closed and Add the "Cancel" button Created 5 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698