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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. 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_PREFS_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
7 7
8 #include "chrome/browser/notifications/balloon_collection.h" 8 #include "chrome/browser/notifications/balloon_collection.h"
9 9
10 class PrefService; 10 class PrefServiceSimple;
11 11
12 // This interface is used to access and mutate the preferences related to 12 // This interface is used to access and mutate the preferences related to
13 // desktop notifications. 13 // desktop notifications.
14 class NotificationPrefsManager { 14 class NotificationPrefsManager {
15 public: 15 public:
16 virtual ~NotificationPrefsManager() {} 16 virtual ~NotificationPrefsManager() {}
17 17
18 // Registers preferences. 18 // Registers preferences.
19 static void RegisterPrefs(PrefService* prefs); 19 static void RegisterPrefs(PrefServiceSimple* prefs);
20 20
21 // Gets the preference indicating where notifications should be placed. 21 // Gets the preference indicating where notifications should be placed.
22 virtual BalloonCollection::PositionPreference 22 virtual BalloonCollection::PositionPreference
23 GetPositionPreference() const = 0; 23 GetPositionPreference() const = 0;
24 24
25 // Sets the preference that indicates where notifications should 25 // Sets the preference that indicates where notifications should
26 // be placed on the screen. 26 // be placed on the screen.
27 virtual void SetPositionPreference( 27 virtual void SetPositionPreference(
28 BalloonCollection::PositionPreference preference) = 0; 28 BalloonCollection::PositionPreference preference) = 0;
29 29
30 protected: 30 protected:
31 NotificationPrefsManager() {} 31 NotificationPrefsManager() {}
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager); 34 DISALLOW_COPY_AND_ASSIGN(NotificationPrefsManager);
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_ 37 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PREFS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698