OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_AUTOFILL_BROWSER_PASSWORD_GENERATOR_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_GENERATOR_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_PASSWORD_GENERATOR_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_GENERATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 | 14 |
15 // Class to generate random passwords. Currently we just use a generic algorithm | 15 // Class to generate random passwords. Currently we just use a generic algorithm |
16 // for all sites, but eventually we can incorporate additional information to | 16 // for all sites, but eventually we can incorporate additional information to |
(...skipping 21 matching lines...) Expand all Loading... |
38 FRIEND_TEST_ALL_PREFIXES(PasswordGeneratorTest, PasswordLength); | 38 FRIEND_TEST_ALL_PREFIXES(PasswordGeneratorTest, PasswordLength); |
39 | 39 |
40 // The length of the generated password. | 40 // The length of the generated password. |
41 const size_t password_length_; | 41 const size_t password_length_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(PasswordGenerator); | 43 DISALLOW_COPY_AND_ASSIGN(PasswordGenerator); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace autofill | 46 } // namespace autofill |
47 | 47 |
48 #endif // COMPONENTS_AUTOFILL_BROWSER_PASSWORD_GENERATOR_H_ | 48 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_GENERATOR_H_ |
OLD | NEW |