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

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

Issue 1155453002: Passing ProfileID instead of Profile* to clarify that profile should not be used for making any cal… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static void RegisterPrefs(PrefRegistrySimple* registry); 52 static void RegisterPrefs(PrefRegistrySimple* registry);
53 53
54 // NotificationUIManager 54 // NotificationUIManager
55 void Add(const Notification& notification, Profile* profile) override; 55 void Add(const Notification& notification, Profile* profile) override;
56 bool Update(const Notification& notification, Profile* profile) override; 56 bool Update(const Notification& notification, Profile* profile) override;
57 const Notification* FindById(const std::string& delegate_id, 57 const Notification* FindById(const std::string& delegate_id,
58 ProfileID profile_id) const override; 58 ProfileID profile_id) const override;
59 bool CancelById(const std::string& delegate_id, 59 bool CancelById(const std::string& delegate_id,
60 ProfileID profile_id) override; 60 ProfileID profile_id) override;
61 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 61 std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
62 Profile* profile, 62 ProfileID profile_id,
63 const GURL& source) override; 63 const GURL& source) override;
64 std::set<std::string> GetAllIdsByProfile(Profile* profile) override; 64 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override;
65 bool CancelAllBySourceOrigin(const GURL& source_origin) override; 65 bool CancelAllBySourceOrigin(const GURL& source_origin) override;
66 bool CancelAllByProfile(ProfileID profile_id) override; 66 bool CancelAllByProfile(ProfileID profile_id) override;
67 void CancelAll() override; 67 void CancelAll() override;
68 68
69 // MessageCenterObserver 69 // MessageCenterObserver
70 void OnNotificationRemoved(const std::string& notification_id, 70 void OnNotificationRemoved(const std::string& notification_id,
71 bool by_user) override; 71 bool by_user) override;
72 void OnCenterVisibilityChanged(message_center::Visibility) override; 72 void OnCenterVisibilityChanged(message_center::Visibility) override;
73 void OnNotificationUpdated(const std::string& notification_id) override; 73 void OnNotificationUpdated(const std::string& notification_id) override;
74 74
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 #if defined(OS_WIN) 157 #if defined(OS_WIN)
158 // Provides weak pointers for the purpose of the first run timer. 158 // Provides weak pointers for the purpose of the first run timer.
159 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_; 159 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_;
160 #endif 160 #endif
161 161
162 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 162 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
163 }; 163 };
164 164
165 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 165 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698