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

Unified Diff: chrome/browser/prefs/pref_notifier_impl.h

Issue 6894020: Adds async interface method to PersistentPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Notifications. 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/browser/prefs/pref_notifier_impl.h
diff --git a/chrome/browser/prefs/pref_notifier_impl.h b/chrome/browser/prefs/pref_notifier_impl.h
index 085e547f64b1af35fafcf9881d1f1a280a23d7fc..28c1160f6ba8588c66bacbadb4d28aa798734cc5 100644
--- a/chrome/browser/prefs/pref_notifier_impl.h
+++ b/chrome/browser/prefs/pref_notifier_impl.h
@@ -32,7 +32,12 @@ class PrefNotifierImpl : public PrefNotifier,
virtual void OnPreferenceChanged(const std::string& pref_name);
virtual void OnInitializationCompleted();
+ void OnPersistentPrefsRead(bool success);
+
protected:
+ void NotifyInitializationCompleted();
+ void NotifyInitializationFailed();
+
// A map from pref names to a list of observers. Observers get fired in the
// order they are added. These should only be accessed externally for unit
// testing.
@@ -52,6 +57,9 @@ class PrefNotifierImpl : public PrefNotifier,
PrefObserverMap pref_observers_;
+ bool pref_notifier_ready_;
+ bool persistent_prefs_ready_;
+
DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl);
};

Powered by Google App Engine
This is Rietveld 408576698