OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_HASH_STORE_CONTENTS_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_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 "chrome/browser/prefs/tracked/hash_store_contents.h" | 12 #include "components/user_prefs/tracked/hash_store_contents.h" |
13 | 13 |
14 class PrefRegistrySimple; | 14 class PrefRegistrySimple; |
15 class PrefService; | 15 class PrefService; |
16 | 16 |
17 // Implements HashStoreContents by storing hashes in a PrefService. Multiple | 17 // Implements HashStoreContents by storing hashes in a PrefService. Multiple |
18 // separate hash stores may coexist in the PrefService by using distinct hash | 18 // separate hash stores may coexist in the PrefService by using distinct hash |
19 // store IDs. | 19 // store IDs. |
20 // TODO(erikwright): This class is only used to recreate preference state as in | 20 // TODO(erikwright): This class is only used to recreate preference state as in |
21 // M35, to test migration behaviour. Remove this class when | 21 // M35, to test migration behaviour. Remove this class when |
22 // ProfilePrefStoreManagerTest no longer depends on it. | 22 // ProfilePrefStoreManagerTest no longer depends on it. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 std::string GetSuperMac() const override; | 62 std::string GetSuperMac() const override; |
63 void SetSuperMac(const std::string& super_mac) override; | 63 void SetSuperMac(const std::string& super_mac) override; |
64 | 64 |
65 private: | 65 private: |
66 const std::string hash_store_id_; | 66 const std::string hash_store_id_; |
67 PrefService* pref_service_; | 67 PrefService* pref_service_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); | 69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 72 #endif // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
OLD | NEW |