Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3479)

Unified Diff: chrome/browser/protector/protector_utils.h

Issue 9863047: Exclude ProtectorService code from Android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/protector/protector_service.cc ('k') | chrome/browser/protector/protector_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/protector_utils.h
diff --git a/chrome/browser/protector/protector_utils.h b/chrome/browser/protector/protector_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..74ebb0a16f1e15cb47d5c9f4eec6b963c8a7bd65
--- /dev/null
+++ b/chrome/browser/protector/protector_utils.h
@@ -0,0 +1,24 @@
+// 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_UTILS_H_
+#define CHROME_BROWSER_PROTECTOR_PROTECTOR_UTILS_H_
+#pragma once
+
+#include <string>
+
+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_UTILS_H_
« no previous file with comments | « chrome/browser/protector/protector_service.cc ('k') | chrome/browser/protector/protector_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698