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

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: test fix 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..a491427623182c69d9fbc25ee017800047360e23 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 TrackedPreferenceValidationObserver;
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 |observer| 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,
+ scoped_ptr<TrackedPreferenceValidationObserver> observer,
Mattias Nissler (ping if slow) 2014/05/15 14:32:25 I may be lacking context, but it's generally rathe
erikwright (departed) 2014/05/15 14:44:51 In this scenario, we are augmenting the functional
Mattias Nissler (ping if slow) 2014/05/15 14:55:08 Can you fill me on what will be implementing Track
grt (UTC plus 2) 2014/05/15 18:21:35 This observation mechanism is for a feature of saf
Mattias Nissler (ping if slow) 2014/05/16 10:34:47 What you write suggests that the safe browsing ser
Mattias Nissler (ping if slow) 2014/05/16 10:34:47 One thing that is not clear to me: Do you need the
erikwright (departed) 2014/05/26 16:38:54 Do you propose adding a profile keyed service for
size_t reporting_ids_count);
virtual ~PrefHashFilter();
@@ -108,6 +111,8 @@ class PrefHashFilter : public InterceptablePrefFilter {
scoped_ptr<PrefHashStore> pref_hash_store_;
+ scoped_ptr<TrackedPreferenceValidationObserver> observer_;
+
TrackedPreferencesMap tracked_paths_;
// The set of all paths whose value has changed since the last call to

Powered by Google App Engine
This is Rietveld 408576698