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 COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ |
6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ | 6 #define COMPONENTS_USER_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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/prefs/tracked/pref_hash_calculator.h" | 13 #include "components/user_prefs/tracked/pref_hash_calculator.h" |
14 #include "chrome/browser/prefs/tracked/pref_hash_store.h" | 14 #include "components/user_prefs/tracked/pref_hash_store.h" |
15 | 15 |
16 class HashStoreContents; | 16 class HashStoreContents; |
17 class PrefHashStoreTransaction; | 17 class PrefHashStoreTransaction; |
18 | 18 |
19 // Implements PrefHashStoreImpl by storing preference hashes in a | 19 // Implements PrefHashStoreImpl by storing preference hashes in a |
20 // HashStoreContents. | 20 // HashStoreContents. |
21 class PrefHashStoreImpl : public PrefHashStore { | 21 class PrefHashStoreImpl : public PrefHashStore { |
22 public: | 22 public: |
23 enum StoreVersion { | 23 enum StoreVersion { |
24 // No hashes have been stored in this PrefHashStore yet. | 24 // No hashes have been stored in this PrefHashStore yet. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ |
OLD | NEW |