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

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

Issue 14767029: Add API function chrome.notifications.getAll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge that caused test error. 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_BALLOON_NOTIFICATION_UI_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 18 matching lines...) Expand all
29 explicit BalloonNotificationUIManager(PrefService* local_state); 29 explicit BalloonNotificationUIManager(PrefService* local_state);
30 virtual ~BalloonNotificationUIManager(); 30 virtual ~BalloonNotificationUIManager();
31 31
32 // Initializes the UI manager with a balloon collection; this object 32 // Initializes the UI manager with a balloon collection; this object
33 // takes ownership of the balloon collection. 33 // takes ownership of the balloon collection.
34 void SetBalloonCollection(BalloonCollection* balloon_collection); 34 void SetBalloonCollection(BalloonCollection* balloon_collection);
35 35
36 // NotificationUIManager: 36 // NotificationUIManager:
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 void GetAllIdsByProfileAndSourceOrigin(
40 Profile* profile,
41 const GURL& source,
42 std::set<std::string>* extension_ids) OVERRIDE;
39 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; 43 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE;
40 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; 44 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE;
41 virtual void CancelAll() OVERRIDE; 45 virtual void CancelAll() OVERRIDE;
42 46
43 // NotificationUIManagerImpl: 47 // NotificationUIManagerImpl:
44 virtual bool ShowNotification(const Notification& notification, 48 virtual bool ShowNotification(const Notification& notification,
45 Profile* profile) OVERRIDE; 49 Profile* profile) OVERRIDE;
46 virtual bool UpdateNotification(const Notification& notification, 50 virtual bool UpdateNotification(const Notification& notification,
47 Profile* profile) OVERRIDE; 51 Profile* profile) OVERRIDE;
48 52
(...skipping 19 matching lines...) Expand all
68 // An owned pointer to the collection of active balloons. 72 // An owned pointer to the collection of active balloons.
69 scoped_ptr<BalloonCollection> balloon_collection_; 73 scoped_ptr<BalloonCollection> balloon_collection_;
70 74
71 // Prefs listener for the position preference. 75 // Prefs listener for the position preference.
72 IntegerPrefMember position_pref_; 76 IntegerPrefMember position_pref_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); 78 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager);
75 }; 79 };
76 80
77 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ 81 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698