| 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 CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_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 |
| 11 #include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h" | 11 #include "components/user_prefs/tracked/pref_hash_store_transaction.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 class Value; | 15 class Value; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // A TrackedPreferenceValidationDelegate is notified of the results of each | 18 // A TrackedPreferenceValidationDelegate is notified of the results of each |
| 19 // tracked preference validation event. | 19 // tracked preference validation event. |
| 20 class TrackedPreferenceValidationDelegate { | 20 class TrackedPreferenceValidationDelegate { |
| 21 public: | 21 public: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 // |dict_value| (which may be NULL) at |pref_path|. |is_personal| indicates | 34 // |dict_value| (which may be NULL) at |pref_path|. |is_personal| indicates |
| 35 // whether or not the value may contain personal information. | 35 // whether or not the value may contain personal information. |
| 36 virtual void OnSplitPreferenceValidation( | 36 virtual void OnSplitPreferenceValidation( |
| 37 const std::string& pref_path, | 37 const std::string& pref_path, |
| 38 const base::DictionaryValue* dict_value, | 38 const base::DictionaryValue* dict_value, |
| 39 const std::vector<std::string>& invalid_keys, | 39 const std::vector<std::string>& invalid_keys, |
| 40 PrefHashStoreTransaction::ValueState value_state, | 40 PrefHashStoreTransaction::ValueState value_state, |
| 41 bool is_personal) = 0; | 41 bool is_personal) = 0; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H
_ | 44 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_
H_ |
| OLD | NEW |