| Index: components/user_prefs/tracked/hash_store_contents.h
|
| diff --git a/components/user_prefs/tracked/hash_store_contents.h b/components/user_prefs/tracked/hash_store_contents.h
|
| index b55a6ebe83807cc82da064c9236f7f153d31e2a0..858664691abf7cf44fa08ca98d70e3998f717b38 100644
|
| --- a/components/user_prefs/tracked/hash_store_contents.h
|
| +++ b/components/user_prefs/tracked/hash_store_contents.h
|
| @@ -14,6 +14,11 @@ class DictionaryValue;
|
| class Value;
|
| } // namespace base
|
|
|
| +enum class HashStoreContentsType : int32_t {
|
| + DICTIONARY_HASH_STORE_CONTENTS = 1,
|
| + REGISTRY_HASH_STORE_CONTENTS = 2
|
| +};
|
| +
|
| // Provides access to the contents of a preference hash store. The store
|
| // contains the following data:
|
| // Contents: a client-defined dictionary that should map preference names to
|
| @@ -24,6 +29,17 @@ class HashStoreContents {
|
| public:
|
| virtual ~HashStoreContents() {}
|
|
|
| + // Helper function to make a clone of this object.
|
| + // NOTE: this is intended to be used as a lightweight alternative to making
|
| + // this class RefCountedThreadSafe. Do not make copies of this object unless
|
| + // you can't avoid it.
|
| + virtual std::unique_ptr<HashStoreContents> MakeCopy() const = 0;
|
| +
|
| + // Returns the string to append to UMA histograms for this store type.
|
| + // The returned value must either be an empty string or one of the values in
|
| + // histograms.xml's TrackedPreferencesExternalValidators.
|
| + virtual std::string GetUMASuffix() const = 0;
|
| +
|
| // Discards all data related to this hash store.
|
| virtual void Reset() = 0;
|
|
|
|
|