OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TRACKED_SPLIT_PREFERENCE_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 17 matching lines...) Expand all Loading... |
28 TrackedSplitPreference(const std::string& pref_path, | 28 TrackedSplitPreference(const std::string& pref_path, |
29 size_t reporting_id, | 29 size_t reporting_id, |
30 size_t reporting_ids_count, | 30 size_t reporting_ids_count, |
31 PrefHashFilter::EnforcementLevel enforcement_level, | 31 PrefHashFilter::EnforcementLevel enforcement_level, |
32 PrefHashFilter::ValueType value_type, | 32 PrefHashFilter::ValueType value_type, |
33 TrackedPreferenceValidationDelegate* delegate); | 33 TrackedPreferenceValidationDelegate* delegate); |
34 | 34 |
35 // TrackedPreference implementation. | 35 // TrackedPreference implementation. |
36 void OnNewValue(const base::Value* value, | 36 void OnNewValue(const base::Value* value, |
37 PrefHashStoreTransaction* transaction) const override; | 37 PrefHashStoreTransaction* transaction) const override; |
38 bool EnforceAndReport(base::DictionaryValue* pref_store_contents, | 38 bool EnforceAndReport( |
39 PrefHashStoreTransaction* transaction) const override; | 39 base::DictionaryValue* pref_store_contents, |
| 40 PrefHashStoreTransaction* transaction, |
| 41 PrefHashStoreTransaction* registry_transaction) const override; |
40 | 42 |
41 private: | 43 private: |
42 const std::string pref_path_; | 44 const std::string pref_path_; |
43 const TrackedPreferenceHelper helper_; | 45 const TrackedPreferenceHelper helper_; |
44 TrackedPreferenceValidationDelegate* delegate_; | 46 TrackedPreferenceValidationDelegate* delegate_; |
45 | 47 |
46 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); | 48 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); |
47 }; | 49 }; |
48 | 50 |
49 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ | 51 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
OLD | NEW |