Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ |
| 6 #define CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 | 9 |
| 10 class PrefHashStoreTransaction; | 10 class PrefHashStoreTransaction; |
| 11 | 11 |
| 12 namespace base { | |
| 13 class DictionaryValue; | |
| 14 } // namespace base | |
| 15 | |
| 12 // Stores hashes of and verifies preference values via | 16 // Stores hashes of and verifies preference values via |
| 13 // PrefHashStoreTransactions. | 17 // PrefHashStoreTransactions. |
|
gab
2014/06/13 01:57:43
Update this comment to state that this PrefHashSto
erikwright (departed)
2014/06/16 20:51:26
Corrected it to refer specifically to this being a
| |
| 14 class PrefHashStore { | 18 class PrefHashStore { |
| 15 public: | 19 public: |
| 16 virtual ~PrefHashStore() {} | 20 virtual ~PrefHashStore() {} |
| 17 | 21 |
| 18 // Returns a PrefHashStoreTransaction which can be used to perform a series | 22 // Returns a PrefHashStoreTransaction which can be used to perform a series |
| 19 // of checks/transformations on the hash store. | 23 // of checks/transformations on the hash store. |
|
gab
2014/06/13 01:57:43
Modify this comment to state that all transformati
erikwright (departed)
2014/06/16 20:51:26
In tests we may ignore |storage| in order to repro
| |
| 20 virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction() = 0; | 24 virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction( |
| 21 | 25 base::DictionaryValue* storage) = 0; |
|
gab
2014/06/13 01:57:43
I think it would make sense for this to take a Has
erikwright (departed)
2014/06/16 20:51:26
Done.
| |
| 22 // Commits this store to disk if it has changed since the last call to this | |
| 23 // method. | |
| 24 virtual void CommitPendingWrite() = 0; | |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 #endif // CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ | 28 #endif // CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_ |
| OLD | NEW |