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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
8 #include "chrome/browser/notifications/balloon_collection.h"
11 class PrefRegistrySimple
;
13 // This interface is used to access and mutate the preferences related to
14 // desktop notifications.
15 class NotificationPrefsManager
{
17 explicit NotificationPrefsManager(PrefService
* prefs
);
18 virtual ~NotificationPrefsManager() {}
20 // Registers preferences.
21 static void RegisterPrefs(PrefRegistrySimple
* registry
);
23 // Gets the preference indicating where notifications should be placed.
24 virtual BalloonCollection::PositionPreference
25 GetPositionPreference() const = 0;
27 // Sets the preference that indicates where notifications should
28 // be placed on the screen.
29 virtual void SetPositionPreference(
30 BalloonCollection::PositionPreference preference
) = 0;
33 NotificationPrefsManager() {}
36 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager
);
39 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_