| 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> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 using ChangedPathsMap = std::map<std::string, const TrackedPreference*>; | 157 using ChangedPathsMap = std::map<std::string, const TrackedPreference*>; |
| 158 | 158 |
| 159 std::unique_ptr<PrefHashStore> pref_hash_store_; | 159 std::unique_ptr<PrefHashStore> pref_hash_store_; |
| 160 | 160 |
| 161 // A store and contents on which to perform extra validations without | 161 // A store and contents on which to perform extra validations without |
| 162 // triggering resets. | 162 // triggering resets. |
| 163 // Will be null if the platform does not support external validation. | 163 // Will be null if the platform does not support external validation. |
| 164 const base::Optional<StoreContentsPair> external_validation_hash_store_pair_; | 164 const base::Optional<StoreContentsPair> external_validation_hash_store_pair_; |
| 165 | 165 |
| 166 // Invoked if a reset occurs in a call to FilterOnLoad. | 166 // Invoked if a reset occurs in a call to FilterOnLoad. |
| 167 const base::Closure on_reset_on_load_; | 167 base::Closure on_reset_on_load_; |
| 168 | 168 |
| 169 TrackedPreferencesMap tracked_paths_; | 169 TrackedPreferencesMap tracked_paths_; |
| 170 | 170 |
| 171 // The set of all paths whose value has changed since the last call to | 171 // The set of all paths whose value has changed since the last call to |
| 172 // FilterSerializeData. | 172 // FilterSerializeData. |
| 173 ChangedPathsMap changed_paths_; | 173 ChangedPathsMap changed_paths_; |
| 174 | 174 |
| 175 // Whether to report the validity of the super MAC at load time (via UMA). | 175 // Whether to report the validity of the super MAC at load time (via UMA). |
| 176 bool report_super_mac_validity_; | 176 bool report_super_mac_validity_; |
| 177 | 177 |
| 178 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); | 178 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 #endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_FILTER_H_ | 181 #endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_FILTER_H_ |
| OLD | NEW |