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

Unified Diff: services/preferences/persistent_pref_store_impl.h

Issue 2856083002: Pref service: support for incognito prefs (Closed)
Patch Set: Rebase Created 3 years, 7 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: services/preferences/persistent_pref_store_impl.h
diff --git a/services/preferences/persistent_pref_store_impl.h b/services/preferences/persistent_pref_store_impl.h
index 5111ed7f4e2ecc93065e21a6a4ff322c3cca1963..1aace44eb8fab3cf6db44ecb8d8bc40a7648953f 100644
--- a/services/preferences/persistent_pref_store_impl.h
+++ b/services/preferences/persistent_pref_store_impl.h
@@ -16,7 +16,8 @@
namespace prefs {
-class PersistentPrefStoreImpl : public PrefStore::Observer {
+class PersistentPrefStoreImpl : public PrefStore::Observer,
+ public mojom::PrefStore {
public:
using ObservedPrefs = std::set<std::string>;
@@ -35,6 +36,7 @@ class PersistentPrefStoreImpl : public PrefStore::Observer {
private:
class Connection;
+ class WritableConnection;
void SetValues(std::vector<mojom::PrefUpdatePtr> updates);
@@ -46,6 +48,10 @@ class PersistentPrefStoreImpl : public PrefStore::Observer {
void OnPrefValueChanged(const std::string& key) override;
void OnInitializationCompleted(bool succeeded) override;
+ // prefs::mojom::PrefStore:
+ void AddObserver(const std::vector<std::string>& prefs_to_observe,
+ const AddObserverCallback& callback) override;
+
void OnConnectionError(Connection* connection);
scoped_refptr<PersistentPrefStore> backing_pref_store_;
« no previous file with comments | « services/preferences/persistent_pref_store_factory.cc ('k') | services/preferences/persistent_pref_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698