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

Unified Diff: chrome/common/persistent_pref_store.h

Issue 6894020: Adds async interface method to PersistentPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: always call OnInit.. Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/persistent_pref_store.h
diff --git a/chrome/common/persistent_pref_store.h b/chrome/common/persistent_pref_store.h
index 620fee8fabdce6839b0132a36408a6ec207a4a75..3b812c881d8cdb21fe65f8a731b9a76450e894f3 100644
--- a/chrome/common/persistent_pref_store.h
+++ b/chrome/common/persistent_pref_store.h
@@ -62,9 +62,17 @@ class PersistentPrefStore : public PrefStore {
// read errors during startup.
virtual bool ReadOnly() const = 0;
- // Reads the preferences from disk.
+ // Reads the preferences from disk. Notifies observers via
+ // "OnInitializationCompleted" when done.
virtual PrefReadError ReadPrefs() = 0;
+ // Reads the preferences from disk asynchronously. Notifies observers via
+ // "OnInitializationCompleted" when done.
+ virtual void ReadPrefsAsync() = 0;
+
+ // Returns reading error and whether the error is fatal.
+ virtual void GetErrors(PrefReadError* error, bool* is_fatal) = 0;
+
// Writes the preferences to disk immediately.
virtual bool WritePrefs() = 0;
« chrome/common/json_pref_store_unittest.cc ('K') | « chrome/common/json_pref_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698