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 38caa89494c46290e20f30180868c4d00ead0e24..34bd4189530278b972c44b5570d0fd0c0ba402dc 100644 |
--- a/chrome/browser/prefs/pref_hash_filter.h |
+++ b/chrome/browser/prefs/pref_hash_filter.h |
@@ -10,6 +10,8 @@ |
#include <string> |
#include "base/basictypes.h" |
+#include "base/bind.h" |
+#include "base/callback.h" |
#include "base/compiler_specific.h" |
#include "base/containers/scoped_ptr_hash_map.h" |
#include "base/memory/scoped_ptr.h" |
@@ -17,6 +19,7 @@ |
#include "chrome/browser/prefs/pref_hash_store.h" |
#include "chrome/browser/prefs/tracked/tracked_preference.h" |
+class PrefRegistrySimple; |
class PrefStore; |
namespace base { |
@@ -65,15 +68,19 @@ class PrefHashFilter : public PrefFilter { |
// |reporting_ids_count| is the count of all possible IDs (possibly greater |
// than |tracked_preferences_size|). |enforcement_level| determines when this |
// filter will enforce factory defaults upon detecting an untrusted preference |
- // value. |
+ // value. |reset_callback| is called when a reset event occurs. |
PrefHashFilter(scoped_ptr<PrefHashStore> pref_hash_store, |
const TrackedPreferenceMetadata tracked_preferences[], |
size_t tracked_preferences_size, |
size_t reporting_ids_count, |
- EnforcementLevel enforcement_level); |
+ EnforcementLevel enforcement_level, |
+ const base::Closure& reset_callback); |
virtual ~PrefHashFilter(); |
+ // Registers required local state preferences. |
+ static void RegisterPrefs(PrefRegistrySimple* registry); |
+ |
// Initializes the PrefHashStore with hashes of the tracked preferences |
// in |pref_store|. |
void Initialize(PrefStore* pref_store); |
@@ -107,6 +114,8 @@ class PrefHashFilter : public PrefFilter { |
// FilterSerializeData. |
ChangedPathsMap changed_paths_; |
+ base::Closure reset_callback_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); |
}; |