Chromium Code Reviews| 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 CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 6 #define CHROME_BROWSER_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 27 matching lines...) Expand all Loading... | |
| 38 // is a hash store ID and whose value is the version of the corresponding | 38 // is a hash store ID and whose value is the version of the corresponding |
| 39 // hash store. | 39 // hash store. |
| 40 static const char kStoreVersionsDict[]; | 40 static const char kStoreVersionsDict[]; |
| 41 | 41 |
| 42 // Registers required preferences. | 42 // Registers required preferences. |
| 43 static void RegisterPrefs(PrefRegistrySimple* registry); | 43 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 44 | 44 |
| 45 // Deletes stored hashes for all profiles from |pref_service|. | 45 // Deletes stored hashes for all profiles from |pref_service|. |
| 46 static void ResetAllPrefHashStores(PrefService* pref_service); | 46 static void ResetAllPrefHashStores(PrefService* pref_service); |
| 47 | 47 |
| 48 virtual void CommitPendingWrite(); | |
|
gab
2014/06/13 01:57:43
This can be removed from here as well IMO.
erikwright (departed)
2014/06/16 20:51:27
Done.
| |
| 49 | |
| 48 // HashStoreContents implementation | 50 // HashStoreContents implementation |
| 49 virtual std::string hash_store_id() const OVERRIDE; | 51 virtual std::string hash_store_id() const OVERRIDE; |
| 50 virtual void Reset() OVERRIDE; | 52 virtual void Reset() OVERRIDE; |
| 51 virtual bool IsInitialized() const OVERRIDE; | 53 virtual bool IsInitialized() const OVERRIDE; |
| 52 virtual const base::DictionaryValue* GetContents() const OVERRIDE; | 54 virtual const base::DictionaryValue* GetContents() const OVERRIDE; |
| 53 virtual scoped_ptr<MutableDictionary> GetMutableContents() OVERRIDE; | 55 virtual scoped_ptr<MutableDictionary> GetMutableContents() OVERRIDE; |
| 54 virtual std::string GetSuperMac() const OVERRIDE; | 56 virtual std::string GetSuperMac() const OVERRIDE; |
| 55 virtual void SetSuperMac(const std::string& super_mac) OVERRIDE; | 57 virtual void SetSuperMac(const std::string& super_mac) OVERRIDE; |
| 56 virtual void CommitPendingWrite() OVERRIDE; | |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 const std::string hash_store_id_; | 60 const std::string hash_store_id_; |
| 60 PrefService* pref_service_; | 61 PrefService* pref_service_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); | 63 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ | 66 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
| OLD | NEW |