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

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

Issue 14767029: Add API function chrome.notifications.getAll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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 | 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 18 matching lines...) Expand all
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 bool DoesIdExist(const std::string& notification_id) OVERRIDE;
38 virtual bool CancelById(const std::string& notification_id) OVERRIDE; 38 virtual bool CancelById(const std::string& notification_id) OVERRIDE;
39 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
40 Profile* profile,
41 const GURL& source) OVERRIDE;
39 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; 42 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
40 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; 43 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
41 virtual void CancelAll() OVERRIDE; 44 virtual void CancelAll() OVERRIDE;
42 45
43 void GetQueuedNotificationsForTesting( 46 void GetQueuedNotificationsForTesting(
44 std::vector<const Notification*>* notifications); 47 std::vector<const Notification*>* notifications);
45 48
46 protected: 49 protected:
47 // Attempts to pass a notification from a waiting queue to the subclass for 50 // Attempts to pass a notification from a waiting queue to the subclass for
48 // presentation. The subclass can return 'false' if it cannot show the 51 // presentation. The subclass can return 'false' if it cannot show the
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 content::NotificationRegistrar registrar_; 90 content::NotificationRegistrar registrar_;
88 91
89 // Used by screen-saver and full-screen handling support. 92 // Used by screen-saver and full-screen handling support.
90 bool is_user_active_; 93 bool is_user_active_;
91 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; 94 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_;
92 95
93 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); 96 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl);
94 }; 97 };
95 98
96 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ 99 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager.cc ('k') | chrome/browser/notifications/notification_ui_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698