Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: components/user_prefs/tracked/tracked_preference_validation_delegate.h

Issue 2390213002: Revert of Send a TrackedPreference incident when registry pref validation fails. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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,
32 bool is_personal) = 0; 31 bool is_personal) = 0;
33 32
34 // Notifies observes of the result (|value_state|) of checking the split 33 // Notifies observes of the result (|value_state|) of checking the split
35 // |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
36 // whether or not the value may contain personal information. 35 // whether or not the value may contain personal information.
37 virtual void OnSplitPreferenceValidation( 36 virtual void OnSplitPreferenceValidation(
38 const std::string& pref_path, 37 const std::string& pref_path,
39 const base::DictionaryValue* dict_value, 38 const base::DictionaryValue* dict_value,
40 const std::vector<std::string>& invalid_keys, 39 const std::vector<std::string>& invalid_keys,
41 PrefHashStoreTransaction::ValueState value_state, 40 PrefHashStoreTransaction::ValueState value_state,
42 PrefHashStoreTransaction::ValueState external_validation_value_state,
43 bool is_personal) = 0; 41 bool is_personal) = 0;
44 }; 42 };
45 43
46 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_ H_ 44 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_ H_
OLDNEW
« no previous file with comments | « components/user_prefs/tracked/tracked_preference_helper.cc ('k') | components/user_prefs/tracked/tracked_split_preference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698