Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / notifications / notification_prefs_manager.h
blob9bb1be24e0630e9a2307c2f17aaa5a8bef06cf8c
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"
10 class PrefService;
11 class PrefRegistrySimple;
13 // This interface is used to access and mutate the preferences related to
14 // desktop notifications.
15 class NotificationPrefsManager {
16 public:
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;
32 protected:
33 NotificationPrefsManager() {}
35 private:
36 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager);
39 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_