| 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().
|
|
|