Index: chrome/browser/managed_mode/managed_user_passphrase.h |
diff --git a/chrome/browser/managed_mode/managed_user_passphrase.h b/chrome/browser/managed_mode/managed_user_passphrase.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6282784616d3533441a94bbbbe207dfcba77827c |
--- /dev/null |
+++ b/chrome/browser/managed_mode/managed_user_passphrase.h |
@@ -0,0 +1,25 @@ |
+// 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_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ |
+#define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ |
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+ |
+class ManagedUserPassphrase { |
Pam (message me for reviews)
2013/01/07 14:51:49
Please add a brief class comment describing what t
|
+ public: |
+ static void GenerateHashFromPassphrase(const std::string& passphrase, |
Pam (message me for reviews)
2013/01/07 14:51:49
Please add a function comment describing what this
|
+ std::string* encoded_passphrase_hash); |
Bernhard Bauer
2013/01/07 14:20:22
Please add some newlines here. At least before the
|
+ private: |
+ static void GetPassphraseHash(const std::string& passphrase, |
Bernhard Bauer
2013/01/07 14:20:22
You might want to change the interface to one meth
|
+ std::string* passphrase_hash); |
Pam (message me for reviews)
2013/01/07 14:51:49
std::string is pretty lightweight, and actually OK
|
+ static const std::string kSalt_; |
Bernhard Bauer
2013/01/07 14:20:22
As a rule of thumb, static and private should trig
|
+ ManagedUserPassphrase(); |
Bernhard Bauer
2013/01/07 14:20:22
See http://google-styleguide.googlecode.com/svn/tr
Bernhard Bauer
2013/01/07 14:20:22
I think at the moment there is no need for a const
|
+ ~ManagedUserPassphrase(); |
Pam (message me for reviews)
2013/01/07 14:51:49
As a style point, I normally expect to see the con
|
+ DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphrase); |
+}; |
+ |
+#endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ |