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

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

Issue 11414215: Add CloseAllByProfile to NotificationUIManager and call before destroyng a Profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 8 years 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 27 matching lines...) Expand all
38 38
39 // Initializes the UI manager with a balloon collection; this object 39 // Initializes the UI manager with a balloon collection; this object
40 // takes ownership of the balloon collection. 40 // takes ownership of the balloon collection.
41 void Initialize(BalloonCollection* balloon_collection); 41 void Initialize(BalloonCollection* balloon_collection);
42 42
43 // NotificationUIManager: 43 // NotificationUIManager:
44 virtual void Add(const Notification& notification, 44 virtual void Add(const Notification& notification,
45 Profile* profile) OVERRIDE; 45 Profile* profile) OVERRIDE;
46 virtual bool CancelById(const std::string& notification_id) OVERRIDE; 46 virtual bool CancelById(const std::string& notification_id) OVERRIDE;
47 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; 47 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
48 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
48 virtual void CancelAll() OVERRIDE; 49 virtual void CancelAll() OVERRIDE;
49 virtual BalloonCollection* balloon_collection() OVERRIDE; 50 virtual BalloonCollection* balloon_collection() OVERRIDE;
50 virtual NotificationPrefsManager* prefs_manager() OVERRIDE; 51 virtual NotificationPrefsManager* prefs_manager() OVERRIDE;
51 virtual void GetQueuedNotificationsForTesting( 52 virtual void GetQueuedNotificationsForTesting(
52 std::vector<const Notification*>* notifications) OVERRIDE; 53 std::vector<const Notification*>* notifications) OVERRIDE;
53 54
54 // NotificationPrefsManager: 55 // NotificationPrefsManager:
55 virtual BalloonCollection::PositionPreference 56 virtual BalloonCollection::PositionPreference
56 GetPositionPreference() const OVERRIDE; 57 GetPositionPreference() const OVERRIDE;
57 virtual void SetPositionPreference( 58 virtual void SetPositionPreference(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 IntegerPrefMember position_pref_; 97 IntegerPrefMember position_pref_;
97 98
98 // Used by screen-saver and full-screen handling support. 99 // Used by screen-saver and full-screen handling support.
99 bool is_user_active_; 100 bool is_user_active_;
100 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; 101 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); 103 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl);
103 }; 104 };
104 105
105 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ 106 #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