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

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

Issue 324493002: Move preference MACs to the protected preference stores. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment typo. Created 6 years, 6 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
« no previous file with comments | « chrome/browser/prefs/pref_hash_store.h ('k') | chrome/browser/prefs/pref_hash_store_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38fd19f96c07d1218f9fb472fbcd0167e2c06061..a9c9e9f46eb9d6d5e18265099298b1e2f5abdf8e 100644
--- a/chrome/browser/prefs/pref_hash_store_impl.h
+++ b/chrome/browser/prefs/pref_hash_store_impl.h
@@ -16,11 +16,6 @@
class HashStoreContents;
class PrefHashStoreTransaction;
-namespace base {
-class DictionaryValue;
-class Value;
-}
-
// Implements PrefHashStoreImpl by storing preference hashes in a
// HashStoreContents.
class PrefHashStoreImpl : public PrefHashStore {
@@ -42,31 +37,30 @@ class PrefHashStoreImpl : public PrefHashStore {
// previously stored hashes in |contents|.
PrefHashStoreImpl(const std::string& seed,
const std::string& device_id,
- scoped_ptr<HashStoreContents> contents,
bool use_super_mac);
virtual ~PrefHashStoreImpl();
+ // Provides an external HashStoreContents implementation to be used.
+ // BeginTransaction() will ignore |storage| if this is provided.
+ void set_legacy_hash_store_contents(
+ scoped_ptr<HashStoreContents> legacy_hash_store_contents);
+
// Clears the contents of this PrefHashStore. |IsInitialized()| will return
// false after this call.
void Reset();
// PrefHashStore implementation.
- virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction() OVERRIDE;
- virtual void CommitPendingWrite() OVERRIDE;
+ virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction(
+ scoped_ptr<HashStoreContents> storage) OVERRIDE;
private:
class PrefHashStoreTransactionImpl;
const PrefHashCalculator pref_hash_calculator_;
- scoped_ptr<HashStoreContents> contents_;
- const bool initial_hashes_dictionary_trusted_;
+ scoped_ptr<HashStoreContents> legacy_hash_store_contents_;
bool use_super_mac_;
- // True if hashes have been modified since the last call to
- // CommitPendingWriteIfRequired().
- bool has_pending_write_;
-
DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl);
};
« no previous file with comments | « chrome/browser/prefs/pref_hash_store.h ('k') | chrome/browser/prefs/pref_hash_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698