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

Unified Diff: services/preferences/tracked/segregated_pref_store.h

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: rebase Created 3 years, 9 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/tracked/segregated_pref_store.h
diff --git a/services/preferences/tracked/segregated_pref_store.h b/services/preferences/tracked/segregated_pref_store.h
index 8118dd5fc1aec28715a0b507515a6dc14d270ab4..42d03cc241f53d133adf124e77af629c5aea0eb9 100644
--- a/services/preferences/tracked/segregated_pref_store.h
+++ b/services/preferences/tracked/segregated_pref_store.h
@@ -16,6 +16,7 @@
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
#include "components/prefs/persistent_pref_store.h"
+#include "services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom.h"
// Provides a unified PersistentPrefStore implementation that splits its storage
// and retrieval between two underlying PersistentPrefStore instances: a set of
@@ -43,7 +44,8 @@ class SegregatedPrefStore : public PersistentPrefStore {
SegregatedPrefStore(
const scoped_refptr<PersistentPrefStore>& default_pref_store,
const scoped_refptr<PersistentPrefStore>& selected_pref_store,
- const std::set<std::string>& selected_pref_names);
+ const std::set<std::string>& selected_pref_names,
+ prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate);
// PrefStore implementation
void AddObserver(Observer* observer) override;
@@ -109,6 +111,8 @@ class SegregatedPrefStore : public PersistentPrefStore {
base::ObserverList<PrefStore::Observer, true> observers_;
AggregatingObserver aggregating_observer_;
+ prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore);
};

Powered by Google App Engine
This is Rietveld 408576698