Chromium Code Reviews| 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_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ | |
| 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 | |
| 12 class ManagedUserPassphrase { | |
|
Pam (message me for reviews)
2013/01/07 14:51:49
Please add a brief class comment describing what t
| |
| 13 public: | |
| 14 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
| |
| 15 std::string* encoded_passphrase_hash); | |
|
Bernhard Bauer
2013/01/07 14:20:22
Please add some newlines here. At least before the
| |
| 16 private: | |
| 17 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
| |
| 18 std::string* passphrase_hash); | |
|
Pam (message me for reviews)
2013/01/07 14:51:49
std::string is pretty lightweight, and actually OK
| |
| 19 static const std::string kSalt_; | |
|
Bernhard Bauer
2013/01/07 14:20:22
As a rule of thumb, static and private should trig
| |
| 20 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
| |
| 21 ~ManagedUserPassphrase(); | |
|
Pam (message me for reviews)
2013/01/07 14:51:49
As a style point, I normally expect to see the con
| |
| 22 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphrase); | |
| 23 }; | |
| 24 | |
| 25 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_PASSPHRASE_H_ | |
| OLD | NEW |