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