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

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: Pull some stuff from Persistent to WriteablePrefStore. 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
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 c6483277832c5fc97b4f6c62466d6a779c6d5694..fd1186db2c39e5ccf49120f1be4f17112b70105d 100644
--- a/chrome/browser/prefs/pref_hash_store_impl.h
+++ b/chrome/browser/prefs/pref_hash_store_impl.h
@@ -36,33 +36,28 @@ class PrefHashStoreImpl : public PrefHashStore {
};
// Constructs a PrefHashStoreImpl that calculates hashes using
- // |seed| and |device_id| and stores them in |contents|.
- //
- // The same |seed| and |device_id| must be used to load and validate
- // previously stored hashes in |contents|.
- PrefHashStoreImpl(const std::string& seed,
- const std::string& device_id,
- scoped_ptr<HashStoreContents> contents);
+ // |seed| and |device_id|
+ PrefHashStoreImpl(const std::string& seed, const std::string& device_id);
virtual ~PrefHashStoreImpl();
- // Clears the contents of this PrefHashStore. |IsInitialized()| will return
- // false after this call.
- void Reset();
+ // Configures this |PrefHashStoreImpl| to store MACs in and retrieve MACs from
+ // |contents|.
+ void SetHashStoreContents(scoped_ptr<HashStoreContents> contents);
// PrefHashStore implementation.
+ virtual bool IsInitialized() const OVERRIDE;
+ virtual void Reset() OVERRIDE;
virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction() OVERRIDE;
virtual void CommitPendingWrite() OVERRIDE;
- // Returns the current version of this hash store.
- StoreVersion GetCurrentVersion() const;
-
private:
class PrefHashStoreTransactionImpl;
const PrefHashCalculator pref_hash_calculator_;
scoped_ptr<HashStoreContents> contents_;
- const bool initial_hashes_dictionary_trusted_;
+
+ bool initial_hashes_dictionary_trusted_;
// True if hashes have been modified since the last call to
// CommitPendingWriteIfRequired().

Powered by Google App Engine
This is Rietveld 408576698