OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |
6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ | 6 #define CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Profile which settings we are protecting. | 62 // Profile which settings we are protecting. |
63 Profile* profile_; | 63 Profile* profile_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(Protector); | 65 DISALLOW_COPY_AND_ASSIGN(Protector); |
66 }; | 66 }; |
67 | 67 |
68 // Signs string value with protector's key. | 68 // Signs string value with protector's key. |
69 std::string SignSetting(const std::string& value); | 69 std::string SignSetting(const std::string& value); |
70 | 70 |
| 71 // Returns true if the signature is valid for the specified key. |
| 72 bool IsSettingValid(const std::string& value, const std::string& signature); |
| 73 |
71 } // namespace protector | 74 } // namespace protector |
72 | 75 |
73 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ | 76 #endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |
OLD | NEW |