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

Side by Side Diff: chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h"
12
13 namespace base {
14 class DictionaryValue;
15 class Value;
16 }
17
18 // A TrackedPreferenceValidationDelegate is notified of the results of each
19 // tracked preference validation event.
20 class TrackedPreferenceValidationDelegate {
21 public:
22 virtual ~TrackedPreferenceValidationDelegate() {}
23
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
26 // or not the value may contain personal information.
27 virtual void OnAtomicPreferenceValidation(
28 const std::string& pref_path,
29 const base::Value* value,
30 PrefHashStoreTransaction::ValueState value_state,
31 bool is_personal) = 0;
32
33 // 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 // whether or not the value may contain personal information.
36 virtual void OnSplitPreferenceValidation(
37 const std::string& pref_path,
38 const base::DictionaryValue* dict_value,
39 const std::vector<std::string>& invalid_keys,
40 PrefHashStoreTransaction::ValueState value_state,
41 bool is_personal) = 0;
42 };
43
44 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_VALIDATION_DELEGATE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698