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

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

Issue 266553002: Add TrackedPreferenceValidationDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r272759 Created 6 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: chrome/browser/prefs/pref_hash_filter.h
diff --git a/chrome/browser/prefs/pref_hash_filter.h b/chrome/browser/prefs/pref_hash_filter.h
index cb795b53becf21365cffc8572e05544aa5e1bb39..217396fdcb77733007ef3b9332822dc548d54bea 100644
--- a/chrome/browser/prefs/pref_hash_filter.h
+++ b/chrome/browser/prefs/pref_hash_filter.h
@@ -18,6 +18,7 @@
class PrefService;
class PrefStore;
+class TrackedPreferenceValidationDelegate;
namespace base {
class DictionaryValue;
@@ -56,12 +57,14 @@ class PrefHashFilter : public InterceptablePrefFilter {
};
// Constructs a PrefHashFilter tracking the specified |tracked_preferences|
- // using |pref_hash_store| to check/store hashes.
+ // using |pref_hash_store| to check/store hashes. An optional |delegate| is
+ // notified of the status of each preference as it is checked.
// |reporting_ids_count| is the count of all possible IDs (possibly greater
// than |tracked_preferences.size()|).
PrefHashFilter(
scoped_ptr<PrefHashStore> pref_hash_store,
const std::vector<TrackedPreferenceMetadata>& tracked_preferences,
+ TrackedPreferenceValidationDelegate* delegate,
size_t reporting_ids_count);
virtual ~PrefHashFilter();

Powered by Google App Engine
This is Rietveld 408576698