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

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: Merge to head again, previous had unrelated broken win_rel test. Created 7 years, 12 months 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 {
12 public:
13 // You may wish to use PrefServiceBuilder or one of its subclasses
14 // for simplified construction.
15 PrefServiceSimple(
16 PrefNotifierImpl* pref_notifier,
17 PrefValueStore* pref_value_store,
18 PersistentPrefStore* user_prefs,
19 DefaultPrefStore* default_store,
20 base::Callback<void(PersistentPrefStore::PrefReadError)>
21 read_error_callback,
22 bool async);
23 virtual ~PrefServiceSimple();
24
25 void RegisterBooleanPref(const char* path, bool default_value);
26 void RegisterIntegerPref(const char* path, int default_value);
27 void RegisterDoublePref(const char* path, double default_value);
28 void RegisterStringPref(const char* path, const std::string& default_value);
29 void RegisterFilePathPref(const char* path, const FilePath& default_value);
30 void RegisterListPref(const char* path);
31 void RegisterDictionaryPref(const char* path);
32 void RegisterListPref(const char* path, base::ListValue* default_value);
33 void RegisterDictionaryPref(
34 const char* path, base::DictionaryValue* default_value);
35 void RegisterInt64Pref(const char* path,
36 int64 default_value);
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(PrefServiceSimple);
40 };
41
42 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SIMPLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_builder.cc ('k') | chrome/browser/prefs/pref_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698