| 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_PROTECTOR_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_PROTECTOR_SERVICE_H_ |
| 6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_SERVICE_H_ | 6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // True if there is a change that has been shown and not yet accepted or | 123 // True if there is a change that has been shown and not yet accepted or |
| 124 // discarded by user. | 124 // discarded by user. |
| 125 bool has_active_change_; | 125 bool has_active_change_; |
| 126 | 126 |
| 127 // Observes changes to protected prefs and updates the backup. | 127 // Observes changes to protected prefs and updates the backup. |
| 128 scoped_ptr<ProtectedPrefsWatcher> prefs_watcher_; | 128 scoped_ptr<ProtectedPrefsWatcher> prefs_watcher_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(ProtectorService); | 130 DISALLOW_COPY_AND_ASSIGN(ProtectorService); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 // Signs string value with protector's key. | |
| 134 std::string SignSetting(const std::string& value); | |
| 135 | |
| 136 // Returns true if the signature is valid for the specified key. | |
| 137 bool IsSettingValid(const std::string& value, const std::string& signature); | |
| 138 | |
| 139 // Whether the Protector feature is enabled. | |
| 140 bool IsEnabled(); | |
| 141 | |
| 142 } // namespace protector | 133 } // namespace protector |
| 143 | 134 |
| 144 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_SERVICE_H_ | 135 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_SERVICE_H_ |
| OLD | NEW |