Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / browser / notifications / notification_prefs_manager.h
blob922e09f00fb90870b4a34c1a27253751b14d1061
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;
12 // This interface is used to access and mutate the preferences related to
13 // desktop notifications.
14 class NotificationPrefsManager {
15 public:
16 virtual ~NotificationPrefsManager() {}
18 // Registers preferences.
19 static void RegisterPrefs(PrefService* prefs);
21 // Gets the preference indicating where notifications should be placed.
22 virtual BalloonCollection::PositionPreference
23 GetPositionPreference() const = 0;
25 // Sets the preference that indicates where notifications should
26 // be placed on the screen.
27 virtual void SetPositionPreference(
28 BalloonCollection::PositionPreference preference) = 0;
30 protected:
31 NotificationPrefsManager() {}
33 private:
34 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager);
37 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_