| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PROTECTOR_PROTECTOR_UTILS_H_ | |
| 6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace protector { | |
| 11 | |
| 12 // Signs string value with protector's key. | |
| 13 std::string SignSetting(const std::string& value); | |
| 14 | |
| 15 // Returns true if the signature is valid for the specified key. | |
| 16 bool IsSettingValid(const std::string& value, const std::string& signature); | |
| 17 | |
| 18 // Whether the Protector feature is enabled. | |
| 19 bool IsEnabled(); | |
| 20 | |
| 21 } // namespace protector | |
| 22 | |
| 23 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_UTILS_H_ | |
| OLD | NEW |