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

Side by Side Diff: components/user_prefs/tracked/pref_hash_store_transaction.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_PREF_HASH_STORE_TRANSACTION_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_TRANSACTION_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_TRANSACTION_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 CHANGED, 31 CHANGED,
32 // No stored hash exists for the preference value. 32 // No stored hash exists for the preference value.
33 UNTRUSTED_UNKNOWN_VALUE, 33 UNTRUSTED_UNKNOWN_VALUE,
34 // No stored hash exists for the preference value, but the current set of 34 // No stored hash exists for the preference value, but the current set of
35 // hashes stored is trusted and thus this value can safely be seeded. This 35 // hashes stored is trusted and thus this value can safely be seeded. This
36 // happens when all hashes are already properly seeded and a newly 36 // happens when all hashes are already properly seeded and a newly
37 // tracked value needs to be seeded). 37 // tracked value needs to be seeded).
38 TRUSTED_UNKNOWN_VALUE, 38 TRUSTED_UNKNOWN_VALUE,
39 // NULL values are inherently trusted. 39 // NULL values are inherently trusted.
40 TRUSTED_NULL_VALUE, 40 TRUSTED_NULL_VALUE,
41 // This transaction's store type is not supported.
42 UNSUPPORTED,
43 }; 41 };
44 42
45 // Finalizes any remaining work after the transaction has been performed. 43 // Finalizes any remaining work after the transaction has been performed.
46 virtual ~PrefHashStoreTransaction() {} 44 virtual ~PrefHashStoreTransaction() {}
47 45
48 // Returns the suffix to be appended to UMA histograms for the store contained 46 // Returns the suffix to be appended to UMA histograms for the store contained
49 // in this transaction. 47 // in this transaction.
50 virtual base::StringPiece GetStoreUMASuffix() const = 0; 48 virtual base::StringPiece GetStoreUMASuffix() const = 0;
51 49
52 // Checks |initial_value| against the existing stored value hash. 50 // Checks |initial_value| against the existing stored value hash.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Indicates whether the super MAC was successfully verified at the beginning 91 // Indicates whether the super MAC was successfully verified at the beginning
94 // of this transaction. 92 // of this transaction.
95 virtual bool IsSuperMACValid() const = 0; 93 virtual bool IsSuperMACValid() const = 0;
96 94
97 // Forces a valid super MAC to be stored when this transaction terminates. 95 // Forces a valid super MAC to be stored when this transaction terminates.
98 // Returns true if this results in a change to the store contents. 96 // Returns true if this results in a change to the store contents.
99 virtual bool StampSuperMac() = 0; 97 virtual bool StampSuperMac() = 0;
100 }; 98 };
101 99
102 #endif // COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_TRANSACTION_H_ 100 #endif // COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « components/user_prefs/tracked/pref_hash_filter_unittest.cc ('k') | components/user_prefs/tracked/tracked_atomic_preference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698