| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_FILTER_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_FILTER_H_ |
| 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_FILTER_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_FILTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/containers/scoped_ptr_hash_map.h" | 17 #include "base/containers/scoped_ptr_hash_map.h" |
| 18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/optional.h" | 20 #include "base/optional.h" |
| 21 #include "components/user_prefs/tracked/hash_store_contents.h" | 21 #include "components/user_prefs/tracked/hash_store_contents.h" |
| 22 #include "components/user_prefs/tracked/interceptable_pref_filter.h" | 22 #include "components/user_prefs/tracked/interceptable_pref_filter.h" |
| 23 #include "components/user_prefs/tracked/tracked_preference.h" | 23 #include "components/user_prefs/tracked/tracked_preference.h" |
| 24 | 24 |
| 25 class PrefHashStore; | 25 class PrefHashStore; |
| 26 class PrefService; | 26 class PrefService; |
| 27 class PrefStore; | |
| 28 class TrackedPreferenceValidationDelegate; | 27 class TrackedPreferenceValidationDelegate; |
| 29 | 28 |
| 30 namespace base { | 29 namespace base { |
| 31 class DictionaryValue; | 30 class DictionaryValue; |
| 32 class Time; | 31 class Time; |
| 33 class Value; | |
| 34 } // namespace base | 32 } // namespace base |
| 35 | 33 |
| 36 namespace user_prefs { | 34 namespace user_prefs { |
| 37 class PrefRegistrySyncable; | 35 class PrefRegistrySyncable; |
| 38 } // namespace user_prefs | 36 } // namespace user_prefs |
| 39 | 37 |
| 40 // Intercepts preference values as they are loaded from disk and verifies them | 38 // Intercepts preference values as they are loaded from disk and verifies them |
| 41 // using a PrefHashStore. Keeps the PrefHashStore contents up to date as values | 39 // using a PrefHashStore. Keeps the PrefHashStore contents up to date as values |
| 42 // are changed. | 40 // are changed. |
| 43 class PrefHashFilter : public InterceptablePrefFilter { | 41 class PrefHashFilter : public InterceptablePrefFilter { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // FilterSerializeData. | 168 // FilterSerializeData. |
| 171 ChangedPathsMap changed_paths_; | 169 ChangedPathsMap changed_paths_; |
| 172 | 170 |
| 173 // Whether to report the validity of the super MAC at load time (via UMA). | 171 // Whether to report the validity of the super MAC at load time (via UMA). |
| 174 bool report_super_mac_validity_; | 172 bool report_super_mac_validity_; |
| 175 | 173 |
| 176 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); | 174 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); |
| 177 }; | 175 }; |
| 178 | 176 |
| 179 #endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_FILTER_H_ | 177 #endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_FILTER_H_ |
| OLD | NEW |