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

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

Issue 2396443002: Revert of Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_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 15 matching lines...) Expand all
26 public: 26 public:
27 // Constructs a TrackedSplitPreference. |pref_path| must be a dictionary pref. 27 // Constructs a TrackedSplitPreference. |pref_path| must be a dictionary pref.
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 TrackedPreferenceType GetType() const override;
37 void OnNewValue(const base::Value* value, 36 void OnNewValue(const base::Value* value,
38 PrefHashStoreTransaction* transaction) const override; 37 PrefHashStoreTransaction* transaction) const override;
39 bool EnforceAndReport( 38 bool EnforceAndReport(base::DictionaryValue* pref_store_contents,
40 base::DictionaryValue* pref_store_contents, 39 PrefHashStoreTransaction* transaction) const override;
41 PrefHashStoreTransaction* transaction,
42 PrefHashStoreTransaction* external_validation_transaction) const override;
43 40
44 private: 41 private:
45 const std::string pref_path_; 42 const std::string pref_path_;
46 const TrackedPreferenceHelper helper_; 43 const TrackedPreferenceHelper helper_;
47 TrackedPreferenceValidationDelegate* delegate_; 44 TrackedPreferenceValidationDelegate* delegate_;
48 45
49 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); 46 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference);
50 }; 47 };
51 48
52 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ 49 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
OLDNEW
« no previous file with comments | « components/user_prefs/tracked/tracked_preference.h ('k') | components/user_prefs/tracked/tracked_split_preference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698