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

Unified Diff: chrome/browser/prefs/pref_hash_store_impl.h

Issue 114223002: Multi-strategy based tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UNKNOWN_VALUE when going from atomic to split hash for an existing tracked pref Created 7 years 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: chrome/browser/prefs/pref_hash_store_impl.h
diff --git a/chrome/browser/prefs/pref_hash_store_impl.h b/chrome/browser/prefs/pref_hash_store_impl.h
index 1d3f5817e32747b374b50ccdea74fb93d0222514..41429d68739aaeef6582515acd9d881ecece3890 100644
--- a/chrome/browser/prefs/pref_hash_store_impl.h
+++ b/chrome/browser/prefs/pref_hash_store_impl.h
@@ -16,10 +16,6 @@
class PrefRegistrySimple;
class PrefService;
-namespace base {
-class Value;
-} // namespace base
-
// Implements PrefHashStoreImpl by storing preference hashes in a PrefService.
class PrefHashStoreImpl : public PrefHashStore {
public:
@@ -44,8 +40,21 @@ class PrefHashStoreImpl : public PrefHashStore {
const base::Value* value) const OVERRIDE;
virtual void StoreHash(const std::string& path,
const base::Value* value) OVERRIDE;
+ virtual ValueState CheckSplitValue(
+ const std::string& path,
+ const base::DictionaryValue* initial_split_value,
+ std::vector<std::string>* invalid_keys) const OVERRIDE;
+ virtual void StoreSplitHash(
+ const std::string& path,
+ const base::DictionaryValue* split_value) OVERRIDE;
private:
+ // Clears any hashes stored for |path|.
+ void ClearPath(const std::string& path);
+
+ // Returns true if there are split hashes stored for |path|.
+ bool HasSplitHashesAtPath(const std::string& path) const;
+
std::string hash_store_id_;
PrefHashCalculator pref_hash_calculator_;
PrefService* local_state_;

Powered by Google App Engine
This is Rietveld 408576698