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