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

Side by Side Diff: chrome/browser/notifications/notification_ui_manager_impl.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, 5 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_NOTIFICATION_UI_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 class NotificationUIManagerImpl 27 class NotificationUIManagerImpl
28 : public NotificationUIManager, 28 : public NotificationUIManager,
29 public content::NotificationObserver { 29 public content::NotificationObserver {
30 public: 30 public:
31 NotificationUIManagerImpl(); 31 NotificationUIManagerImpl();
32 virtual ~NotificationUIManagerImpl(); 32 virtual ~NotificationUIManagerImpl();
33 33
34 // NotificationUIManager: 34 // NotificationUIManager:
35 virtual void Add(const Notification& notification, 35 virtual void Add(const Notification& notification,
36 Profile* profile) OVERRIDE; 36 Profile* profile) OVERRIDE;
37 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; 37 virtual const Notification* FindById(
38 const std::string& notification_id) const OVERRIDE;
38 virtual bool CancelById(const std::string& notification_id) OVERRIDE; 39 virtual bool CancelById(const std::string& notification_id) OVERRIDE;
39 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 40 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
40 Profile* profile, 41 Profile* profile,
41 const GURL& source) OVERRIDE; 42 const GURL& source) OVERRIDE;
42 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; 43 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
43 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; 44 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
44 virtual void CancelAll() OVERRIDE; 45 virtual void CancelAll() OVERRIDE;
45 46
46 void GetQueuedNotificationsForTesting( 47 void GetQueuedNotificationsForTesting(
47 std::vector<const Notification*>* notifications); 48 std::vector<const Notification*>* notifications);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 content::NotificationRegistrar registrar_; 91 content::NotificationRegistrar registrar_;
91 92
92 // Used by screen-saver and full-screen handling support. 93 // Used by screen-saver and full-screen handling support.
93 bool is_user_active_; 94 bool is_user_active_;
94 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; 95 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); 97 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl);
97 }; 98 };
98 99
99 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ 100 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager.h ('k') | chrome/browser/notifications/notification_ui_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698