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

Unified Diff: components/user_prefs/tracked/hash_store_contents.h

Issue 2204943002: Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Experiment with giving two transactions to EnforceAndReport Created 4 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 side-by-side diff with in-line comments
Download patch
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..6ef0724910e2a3a9b1d93c8729f239a728544319 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,9 @@ class HashStoreContents {
public:
virtual ~HashStoreContents() {}
+ // Returns the type of the HashStoreContents.
+ virtual HashStoreContentsType GetType() const = 0;
+
// Discards all data related to this hash store.
virtual void Reset() = 0;

Powered by Google App Engine
This is Rietveld 408576698