Chromium Code Reviews| Index: chrome/browser/protector/protector.h |
| diff --git a/chrome/browser/protector/protector.h b/chrome/browser/protector/protector.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2fb0cf0a611f0a8780a68ee9b9fea0a221ad5eb1 |
| --- /dev/null |
| +++ b/chrome/browser/protector/protector.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |
|
Yaron
2012/03/28 21:23:22
Consider renaming protector_utils
jam
2012/03/28 21:28:16
+1
nilesh
2012/03/28 23:35:11
Done.
|
| +#define CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |
| +#pragma once |
| + |
| +namespace protector { |
| + |
| +// Signs string value with protector's key. |
| +std::string SignSetting(const std::string& value); |
| + |
| +// Returns true if the signature is valid for the specified key. |
| +bool IsSettingValid(const std::string& value, const std::string& signature); |
| + |
| +// Whether the Protector feature is enabled. |
| +bool IsEnabled(); |
| + |
| +} // namespace protector |
| + |
| +#endif // CHROME_BROWSER_PROTECTOR_PROTECTOR_H_ |