| 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_PREFERENCE_VALIDATION_DELEGATE_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_ |
| 6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 virtual ~TrackedPreferenceValidationDelegate() {} | 22 virtual ~TrackedPreferenceValidationDelegate() {} |
| 23 | 23 |
| 24 // Notifies observes of the result (|value_state|) of checking the atomic | 24 // Notifies observes of the result (|value_state|) of checking the atomic |
| 25 // |value| (which may be NULL) at |pref_path|. |is_personal| indicates whether | 25 // |value| (which may be NULL) at |pref_path|. |is_personal| indicates whether |
| 26 // or not the value may contain personal information. | 26 // or not the value may contain personal information. |
| 27 virtual void OnAtomicPreferenceValidation( | 27 virtual void OnAtomicPreferenceValidation( |
| 28 const std::string& pref_path, | 28 const std::string& pref_path, |
| 29 const base::Value* value, | 29 const base::Value* value, |
| 30 PrefHashStoreTransaction::ValueState value_state, | 30 PrefHashStoreTransaction::ValueState value_state, |
| 31 PrefHashStoreTransaction::ValueState external_validation_value_state, |
| 31 bool is_personal) = 0; | 32 bool is_personal) = 0; |
| 32 | 33 |
| 33 // Notifies observes of the result (|value_state|) of checking the split | 34 // Notifies observes of the result (|value_state|) of checking the split |
| 34 // |dict_value| (which may be NULL) at |pref_path|. |is_personal| indicates | 35 // |dict_value| (which may be NULL) at |pref_path|. |is_personal| indicates |
| 35 // whether or not the value may contain personal information. | 36 // whether or not the value may contain personal information. |
| 36 virtual void OnSplitPreferenceValidation( | 37 virtual void OnSplitPreferenceValidation( |
| 37 const std::string& pref_path, | 38 const std::string& pref_path, |
| 38 const base::DictionaryValue* dict_value, | 39 const base::DictionaryValue* dict_value, |
| 39 const std::vector<std::string>& invalid_keys, | 40 const std::vector<std::string>& invalid_keys, |
| 41 const std::vector<std::string>& external_validation_invalid_keys, |
| 40 PrefHashStoreTransaction::ValueState value_state, | 42 PrefHashStoreTransaction::ValueState value_state, |
| 43 PrefHashStoreTransaction::ValueState external_validation_value_state, |
| 41 bool is_personal) = 0; | 44 bool is_personal) = 0; |
| 42 }; | 45 }; |
| 43 | 46 |
| 44 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_
H_ | 47 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_
H_ |
| OLD | NEW |