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

Side by Side Diff: base/prefs/persistent_pref_store.h

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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
« no previous file with comments | « base/prefs/overlay_user_pref_store_unittest.cc ('k') | base/prefs/pref_notifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_PERSISTENT_PREF_STORE_H_ 5 #ifndef BASE_PREFS_PERSISTENT_PREF_STORE_H_
6 #define CHROME_COMMON_PERSISTENT_PREF_STORE_H_ 6 #define BASE_PREFS_PERSISTENT_PREF_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/pref_store.h" 10 #include "base/prefs/pref_store.h"
11 11
12 // This interface is complementary to the PrefStore interface, declaring 12 // This interface is complementary to the PrefStore interface, declaring
13 // additional functionality that adds support for setting values and persisting 13 // additional functionality that adds support for setting values and persisting
14 // the data to some backing store. 14 // the data to some backing store.
15 class PersistentPrefStore : public PrefStore { 15 class PersistentPrefStore : public PrefStore {
16 public: 16 public:
17 // Unique integer code for each type of error so we can report them 17 // Unique integer code for each type of error so we can report them
18 // distinctly in a histogram. 18 // distinctly in a histogram.
19 // NOTE: Don't change the order here as it will change the server's meaning 19 // NOTE: Don't change the order here as it will change the server's meaning
20 // of the histogram. 20 // of the histogram.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Owns |error_delegate|. 84 // Owns |error_delegate|.
85 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0; 85 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0;
86 86
87 // Lands any pending writes to disk. 87 // Lands any pending writes to disk.
88 virtual void CommitPendingWrite() = 0; 88 virtual void CommitPendingWrite() = 0;
89 89
90 protected: 90 protected:
91 virtual ~PersistentPrefStore() {} 91 virtual ~PersistentPrefStore() {}
92 }; 92 };
93 93
94 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ 94 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_
OLDNEW
« no previous file with comments | « base/prefs/overlay_user_pref_store_unittest.cc ('k') | base/prefs/pref_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698