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

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

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 BASE_PREFS_PERSISTENT_PREF_STORE_H_ 5 #ifndef BASE_PREFS_PERSISTENT_PREF_STORE_H_
6 #define BASE_PREFS_PERSISTENT_PREF_STORE_H_ 6 #define BASE_PREFS_PERSISTENT_PREF_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/prefs/base_prefs_export.h" 10 #include "components/prefs/base_prefs_export.h"
11 #include "base/prefs/writeable_pref_store.h" 11 #include "components/prefs/writeable_pref_store.h"
12 12
13 // This interface is complementary to the PrefStore interface, declaring 13 // This interface is complementary to the PrefStore interface, declaring
14 // additional functionality that adds support for setting values and persisting 14 // additional functionality that adds support for setting values and persisting
15 // the data to some backing store. 15 // the data to some backing store.
16 class BASE_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore { 16 class BASE_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore {
17 public: 17 public:
18 // Unique integer code for each type of error so we can report them 18 // Unique integer code for each type of error so we can report them
19 // distinctly in a histogram. 19 // distinctly in a histogram.
20 // NOTE: Don't change the explicit values of the enums as it will change the 20 // NOTE: Don't change the explicit values of the enums as it will change the
21 // server's meaning of the histogram. 21 // server's meaning of the histogram.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // CommitPendingWrite() this does not immediately sync to disk, instead it 68 // CommitPendingWrite() this does not immediately sync to disk, instead it
69 // triggers an eventual write if there is lossy data pending and if there 69 // triggers an eventual write if there is lossy data pending and if there
70 // isn't one scheduled already. 70 // isn't one scheduled already.
71 virtual void SchedulePendingLossyWrites() = 0; 71 virtual void SchedulePendingLossyWrites() = 0;
72 72
73 protected: 73 protected:
74 ~PersistentPrefStore() override {} 74 ~PersistentPrefStore() override {}
75 }; 75 };
76 76
77 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_ 77 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_
OLDNEW
« no previous file with comments | « components/prefs/overlay_user_pref_store_unittest.cc ('k') | components/prefs/pref_change_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698