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_TRACKED_PREF_HASH_STORE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ |
6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ | 6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // BeginTransaction() will ignore |storage| if this is provided. | 45 // BeginTransaction() will ignore |storage| if this is provided. |
46 void set_legacy_hash_store_contents( | 46 void set_legacy_hash_store_contents( |
47 scoped_ptr<HashStoreContents> legacy_hash_store_contents); | 47 scoped_ptr<HashStoreContents> legacy_hash_store_contents); |
48 | 48 |
49 // Clears the contents of this PrefHashStore. |IsInitialized()| will return | 49 // Clears the contents of this PrefHashStore. |IsInitialized()| will return |
50 // false after this call. | 50 // false after this call. |
51 void Reset(); | 51 void Reset(); |
52 | 52 |
53 // PrefHashStore implementation. | 53 // PrefHashStore implementation. |
54 virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction( | 54 virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction( |
55 scoped_ptr<HashStoreContents> storage) OVERRIDE; | 55 scoped_ptr<HashStoreContents> storage) override; |
56 | 56 |
57 private: | 57 private: |
58 class PrefHashStoreTransactionImpl; | 58 class PrefHashStoreTransactionImpl; |
59 | 59 |
60 const PrefHashCalculator pref_hash_calculator_; | 60 const PrefHashCalculator pref_hash_calculator_; |
61 scoped_ptr<HashStoreContents> legacy_hash_store_contents_; | 61 scoped_ptr<HashStoreContents> legacy_hash_store_contents_; |
62 bool use_super_mac_; | 62 bool use_super_mac_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl); | 64 DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ | 67 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ |
OLD | NEW |