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

Unified Diff: services/preferences/public/cpp/pref_observer_store.h

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Updates Created 4 years 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: services/preferences/public/cpp/pref_observer_store.h
diff --git a/services/preferences/public/cpp/pref_observer_store.h b/services/preferences/public/cpp/pref_observer_store.h
index 1e408e1101301ab98aca43e42c7d93a96f7c9d1e..a8c1d515bf1856b7798f04d51b84464d121cf229 100644
--- a/services/preferences/public/cpp/pref_observer_store.h
+++ b/services/preferences/public/cpp/pref_observer_store.h
@@ -13,6 +13,8 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "services/preferences/public/interfaces/preferences.mojom.h"
+namespace preferences {
+
class PrefObserverStoreTest;
// An implementation of PrefStore which uses prefs::mojom::PreferenceManager as
@@ -31,9 +33,9 @@ class PrefObserverStore : public ValueMapPrefStore,
explicit PrefObserverStore(
prefs::mojom::PreferencesManagerPtr prefs_manager_ptr);
- // Defines the set of |keys| which PrefOvserverStore will handle. Begins
- // listening for changes to these from |prefs_manager_|.
- void Init(const std::set<std::string>& keys);
+ // Adds a set of |keys| which PrefObserverStore will handle. Begins listening
+ // for changes to these from |prefs_manager_|.
+ void Subscribe(const std::set<std::string>& keys);
// PrefStore:
bool GetValue(const std::string& key,
@@ -75,4 +77,5 @@ class PrefObserverStore : public ValueMapPrefStore,
DISALLOW_COPY_AND_ASSIGN(PrefObserverStore);
};
+} // namespace preferences
#endif // SERVICES_PREFERENCES_PUBLIC_CPP_PREFS_OBSERVER_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698