OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ |
6 #define CHROME_BROWSER_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ | 6 #define CHROME_BROWSER_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Returns |true| if backup signature is valid. | 85 // Returns |true| if backup signature is valid. |
86 bool IsSignatureValid() const; | 86 bool IsSignatureValid() const; |
87 | 87 |
88 // Updates the backup signature. | 88 // Updates the backup signature. |
89 void UpdateBackupSignature(); | 89 void UpdateBackupSignature(); |
90 | 90 |
91 // Returns data to be signed as string. | 91 // Returns data to be signed as string. |
92 std::string GetSignatureData(PrefService* prefs) const; | 92 std::string GetSignatureData(PrefService* prefs) const; |
93 | 93 |
94 // Cached set of extension IDs. They are not changed as frequently | 94 // Cached set of extension IDs. They are not changed as frequently |
95 ExtensionPrefs::ExtensionIdSet cached_extension_ids_; | 95 extensions::ExtensionPrefs::ExtensionIdSet cached_extension_ids_; |
96 | 96 |
97 scoped_ptr<PrefSetObserver> pref_observer_; | 97 scoped_ptr<PrefSetObserver> pref_observer_; |
98 | 98 |
99 // True if the backup was valid at the profile load time. | 99 // True if the backup was valid at the profile load time. |
100 bool is_backup_valid_; | 100 bool is_backup_valid_; |
101 | 101 |
102 Profile* profile_; | 102 Profile* profile_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(ProtectedPrefsWatcher); | 104 DISALLOW_COPY_AND_ASSIGN(ProtectedPrefsWatcher); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace protector | 107 } // namespace protector |
108 | 108 |
109 #endif // CHROME_BROWSER_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ | 109 #endif // CHROME_BROWSER_PROTECTOR_PROTECTED_PREFS_WATCHER_H_ |
OLD | NEW |