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

Side by Side Diff: components/user_prefs/tracked/tracked_atomic_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_ATOMIC_PREFERENCE_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_ATOMIC_PREFERENCE_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_ATOMIC_PREFERENCE_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_ATOMIC_PREFERENCE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 class TrackedAtomicPreference : public TrackedPreference { 23 class TrackedAtomicPreference : public TrackedPreference {
24 public: 24 public:
25 TrackedAtomicPreference(const std::string& pref_path, 25 TrackedAtomicPreference(const std::string& pref_path,
26 size_t reporting_id, 26 size_t reporting_id,
27 size_t reporting_ids_count, 27 size_t reporting_ids_count,
28 PrefHashFilter::EnforcementLevel enforcement_level, 28 PrefHashFilter::EnforcementLevel enforcement_level,
29 PrefHashFilter::ValueType value_type, 29 PrefHashFilter::ValueType value_type,
30 TrackedPreferenceValidationDelegate* delegate); 30 TrackedPreferenceValidationDelegate* delegate);
31 31
32 // TrackedPreference implementation. 32 // TrackedPreference implementation.
33 TrackedPreferenceType GetType() const override;
34 void OnNewValue(const base::Value* value, 33 void OnNewValue(const base::Value* value,
35 PrefHashStoreTransaction* transaction) const override; 34 PrefHashStoreTransaction* transaction) const override;
36 bool EnforceAndReport( 35 bool EnforceAndReport(base::DictionaryValue* pref_store_contents,
37 base::DictionaryValue* pref_store_contents, 36 PrefHashStoreTransaction* transaction) const override;
38 PrefHashStoreTransaction* transaction,
39 PrefHashStoreTransaction* external_validation_transaction) const override;
40 37
41 private: 38 private:
42 const std::string pref_path_; 39 const std::string pref_path_;
43 const TrackedPreferenceHelper helper_; 40 const TrackedPreferenceHelper helper_;
44 TrackedPreferenceValidationDelegate* delegate_; 41 TrackedPreferenceValidationDelegate* delegate_;
45 42
46 DISALLOW_COPY_AND_ASSIGN(TrackedAtomicPreference); 43 DISALLOW_COPY_AND_ASSIGN(TrackedAtomicPreference);
47 }; 44 };
48 45
49 #endif // COMPONENTS_USER_PREFS_TRACKED_ATOMIC_PREFERENCE_H_ 46 #endif // COMPONENTS_USER_PREFS_TRACKED_ATOMIC_PREFERENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698