Chromium Code Reviews| 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 f3945571cb9362d4b49ccc99f7c0d5d6bff8387f..d843a24fe44f232b0cc5872d10f0cd5f036edce0 100644 |
| --- a/chrome/browser/prefs/pref_hash_filter.h |
| +++ b/chrome/browser/prefs/pref_hash_filter.h |
| @@ -10,6 +10,7 @@ |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/callback.h" |
| #include "base/compiler_specific.h" |
| #include "base/containers/scoped_ptr_hash_map.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -60,6 +61,8 @@ class PrefHashFilter : public InterceptablePrefFilter { |
| // Constructs a PrefHashFilter tracking the specified |tracked_preferences| |
| // using |pref_hash_store| to check/store hashes. An optional |delegate| is |
| // notified of the status of each preference as it is checked. |
| + // If |on_reset| is provided, it will be invoked if a reset occurs in |
|
Nicolas Zea
2014/07/18 21:11:16
nit: might be better to call it something like res
gab
2014/07/21 16:22:04
Renamed to |on_reset_on_load|
|
| + // FilterOnLoad. |
| // |reporting_ids_count| is the count of all possible IDs (possibly greater |
| // than |tracked_preferences.size()|). If |report_super_mac_validity| is true, |
| // the state of the super MAC will be reported via UMA during |
| @@ -67,6 +70,7 @@ class PrefHashFilter : public InterceptablePrefFilter { |
| PrefHashFilter( |
| scoped_ptr<PrefHashStore> pref_hash_store, |
| const std::vector<TrackedPreferenceMetadata>& tracked_preferences, |
| + const base::Closure& on_reset, |
| TrackedPreferenceValidationDelegate* delegate, |
| size_t reporting_ids_count, |
| bool report_super_mac_validity); |
| @@ -116,6 +120,9 @@ class PrefHashFilter : public InterceptablePrefFilter { |
| scoped_ptr<PrefHashStore> pref_hash_store_; |
| + // Invoked if a reset occurs in a call to FilterOnLoad. |
| + const base::Closure on_reset_; |
| + |
| TrackedPreferencesMap tracked_paths_; |
| // The set of all paths whose value has changed since the last call to |