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

Side by Side Diff: chrome/browser/prefs/pref_service_simple.h

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SIMPLE_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SIMPLE_H_
7
8 #include "chrome/browser/prefs/pref_service.h"
9
10 // A simple PrefService implementation.
11 class PrefServiceSimple : public PrefService {
Mattias Nissler (ping if slow) 2012/12/19 19:50:22 Thinking more about these names: I'm wondering whe
Jói 2012/12/20 16:30:31 I think Syncable implies "can be synced" not "is s
Mattias Nissler (ping if slow) 2012/12/21 13:09:31 Yes, makes sense. Material for follow-up changes t
12 public:
13 void RegisterBooleanPref(const char* path, bool default_value);
14 void RegisterIntegerPref(const char* path, int default_value);
15 void RegisterDoublePref(const char* path, double default_value);
16 void RegisterStringPref(const char* path, const std::string& default_value);
17 void RegisterFilePathPref(const char* path, const FilePath& default_value);
18 void RegisterListPref(const char* path);
19 void RegisterDictionaryPref(const char* path);
20 void RegisterListPref(const char* path, base::ListValue* default_value);
21 void RegisterDictionaryPref(
22 const char* path, base::DictionaryValue* default_value);
23 void RegisterInt64Pref(const char* path,
24 int64 default_value);
25 protected:
26 // Only use ChromePrefServiceFactory to create initialized PrefServiceSimple
27 // objects.
28 PrefServiceSimple();
Mattias Nissler (ping if slow) 2012/12/20 13:41:52 needs a virtual dtor
Jói 2012/12/20 16:30:31 Done, also added DISALLOW_COPY_AND_ASSIGN.
29
30 // Constructs objects.
31 friend class ChromePrefServiceFactory;
32 friend class PrefServiceMockBuilder;
33 };
34
35 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SIMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698