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

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

Issue 20136004: Allow partial update for notification update API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more tests per feedback Created 7 years, 4 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 | Annotate | Revision Log
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 20 matching lines...) Expand all
31 : public NotificationUIManagerImpl, 31 : public NotificationUIManagerImpl,
32 public message_center::MessageCenter::Delegate, 32 public message_center::MessageCenter::Delegate,
33 public message_center::MessageCenterObserver { 33 public message_center::MessageCenterObserver {
34 public: 34 public:
35 explicit MessageCenterNotificationManager( 35 explicit MessageCenterNotificationManager(
36 message_center::MessageCenter* message_center, 36 message_center::MessageCenter* message_center,
37 PrefService* local_state); 37 PrefService* local_state);
38 virtual ~MessageCenterNotificationManager(); 38 virtual ~MessageCenterNotificationManager();
39 39
40 // NotificationUIManager 40 // NotificationUIManager
41 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; 41 virtual const Notification* FindById(
42 const std::string& notification_id) const OVERRIDE;
42 virtual bool CancelById(const std::string& notification_id) OVERRIDE; 43 virtual bool CancelById(const std::string& notification_id) OVERRIDE;
43 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 44 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
44 Profile* profile, 45 Profile* profile,
45 const GURL& source) OVERRIDE; 46 const GURL& source) OVERRIDE;
46 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; 47 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
47 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; 48 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
48 virtual void CancelAll() OVERRIDE; 49 virtual void CancelAll() OVERRIDE;
49 50
50 // NotificationUIManagerImpl 51 // NotificationUIManagerImpl
51 virtual bool ShowNotification(const Notification& notification, 52 virtual bool ShowNotification(const Notification& notification,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Provides weak pointers for the purpose of the first run timer. 211 // Provides weak pointers for the purpose of the first run timer.
211 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_; 212 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_;
212 #endif 213 #endif
213 214
214 scoped_ptr<MessageCenterSettingsController> settings_controller_; 215 scoped_ptr<MessageCenterSettingsController> settings_controller_;
215 216
216 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 217 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
217 }; 218 };
218 219
219 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 220 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698