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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // hash store. | 47 // hash store. |
48 static const char kStoreVersionsDict[]; | 48 static const char kStoreVersionsDict[]; |
49 | 49 |
50 // Registers required preferences. | 50 // Registers required preferences. |
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 virtual std::string hash_store_id() const OVERRIDE; | 57 virtual std::string hash_store_id() const override; |
58 virtual void Reset() OVERRIDE; | 58 virtual void Reset() override; |
59 virtual bool IsInitialized() const OVERRIDE; | 59 virtual bool IsInitialized() const override; |
60 virtual const base::DictionaryValue* GetContents() const OVERRIDE; | 60 virtual const base::DictionaryValue* GetContents() const override; |
61 virtual scoped_ptr<MutableDictionary> GetMutableContents() OVERRIDE; | 61 virtual scoped_ptr<MutableDictionary> GetMutableContents() override; |
62 virtual std::string GetSuperMac() const OVERRIDE; | 62 virtual std::string GetSuperMac() const override; |
63 virtual void SetSuperMac(const std::string& super_mac) OVERRIDE; | 63 virtual 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 // CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ |
OLD | NEW |