| 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 COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
| 6 #define COMPONENTS_USER_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" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 static void RegisterPrefs(PrefRegistrySimple* registry); | 51 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 52 | 52 |
| 53 // Deletes stored hashes for all profiles from |pref_service|. | 53 // Deletes stored hashes for all profiles from |pref_service|. |
| 54 static void ResetAllPrefHashStores(PrefService* pref_service); | 54 static void ResetAllPrefHashStores(PrefService* pref_service); |
| 55 | 55 |
| 56 // HashStoreContents implementation | 56 // HashStoreContents implementation |
| 57 std::string hash_store_id() const override; | 57 std::string hash_store_id() const override; |
| 58 void Reset() override; | 58 void Reset() override; |
| 59 bool IsInitialized() const override; | 59 bool IsInitialized() const override; |
| 60 const base::DictionaryValue* GetContents() const override; | 60 const base::DictionaryValue* GetContents() const override; |
| 61 scoped_ptr<MutableDictionary> GetMutableContents() override; | 61 std::unique_ptr<MutableDictionary> GetMutableContents() override; |
| 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 // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 72 #endif // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
| OLD | NEW |