OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace password_manager { | 10 namespace password_manager { |
11 | |
12 #if defined(OS_MACOSX) | |
13 // Status of password migration from the Keychain. | |
14 enum class MigrationStatus { | |
Ilya Sherman
2015/07/07 02:48:22
Please document that this enum is used to back a h
vasilii
2015/07/07 15:45:54
Done.
| |
15 // Migration wasn't tried yet. | |
16 NOT_STARTED = 0, | |
17 | |
18 // Migration finished successfully. | |
19 MIGRATED, | |
20 | |
21 // Migration failed once. It should be tried again. | |
22 FAILED_ONCE, | |
23 | |
24 // Migration failed twice. It should not be tried again. | |
25 FAILED_TWICE, | |
26 | |
27 NUM_MIGRATION_STATUS, | |
Ilya Sherman
2015/07/07 02:48:22
nit: either "NUM_MIGRATIN_STATUSES" or "MIGRATION_
vasilii
2015/07/07 15:45:54
Done.
| |
28 }; | |
29 #endif | |
Ilya Sherman
2015/07/07 02:48:22
nit: These are not pref names. Please declare the
vasilii
2015/07/07 15:45:54
Done.
| |
30 | |
11 namespace prefs { | 31 namespace prefs { |
12 | 32 |
13 // Alphabetical list of preference names specific to the PasswordManager | 33 // Alphabetical list of preference names specific to the PasswordManager |
14 // component. | 34 // component. |
15 | 35 |
16 // The value of this parameter is boolean that indicates whether | 36 // The value of this parameter is boolean that indicates whether |
17 // "Allow to collect URL?" bubble was shown or not. | 37 // "Allow to collect URL?" bubble was shown or not. |
18 extern const char kAllowToCollectURLBubbleWasShown[]; | 38 extern const char kAllowToCollectURLBubbleWasShown[]; |
19 | 39 |
20 // The value of this parameter is used to calculate the start day of the | 40 // The value of this parameter is used to calculate the start day of the |
21 // period, in which the "Allow to collect URL?" bubble can be shown. | 41 // period, in which the "Allow to collect URL?" bubble can be shown. |
22 extern const char kAllowToCollectURLBubbleActivePeriodStartFactor[]; | 42 extern const char kAllowToCollectURLBubbleActivePeriodStartFactor[]; |
23 | 43 |
24 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 44 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
25 // The local profile id for this profile. | 45 // The local profile id for this profile. |
26 extern const char kLocalProfileId[]; | 46 extern const char kLocalProfileId[]; |
27 #endif | 47 #endif |
28 | 48 |
29 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
30 // Whether the password was blank, only valid if OS password was last changed | 50 // Whether the password was blank, only valid if OS password was last changed |
31 // on or before the value contained in kOsPasswordLastChanged. | 51 // on or before the value contained in kOsPasswordLastChanged. |
32 extern const char kOsPasswordBlank[]; | 52 extern const char kOsPasswordBlank[]; |
33 | 53 |
34 // The number of seconds since epoch that the OS password was last changed. | 54 // The number of seconds since epoch that the OS password was last changed. |
35 extern const char kOsPasswordLastChanged[]; | 55 extern const char kOsPasswordLastChanged[]; |
36 #endif | 56 #endif |
37 | 57 |
58 #if defined(OS_MACOSX) | |
59 // The current status of migrating the passwords from the Keychain to the | |
60 // database. Stores a value from MigrationStatus. | |
61 extern const char kKeychainMigrationStatus[]; | |
62 #endif | |
63 | |
38 // Boolean controlling whether the password manager allows to retrieve passwords | 64 // Boolean controlling whether the password manager allows to retrieve passwords |
39 // in clear text. | 65 // in clear text. |
40 extern const char kPasswordManagerAllowShowPasswords[]; | 66 extern const char kPasswordManagerAllowShowPasswords[]; |
41 | 67 |
42 // Boolean controlling whether the password manager allows automatic signing in | 68 // Boolean controlling whether the password manager allows automatic signing in |
43 // through Credential Manager API. | 69 // through Credential Manager API. |
44 extern const char kPasswordManagerAutoSignin[]; | 70 extern const char kPasswordManagerAutoSignin[]; |
45 | 71 |
46 // Boolean that is true if password saving is on (will record new | 72 // Boolean that is true if password saving is on (will record new |
47 // passwords and fill in known passwords). When it is false, it doesn't | 73 // passwords and fill in known passwords). When it is false, it doesn't |
48 // ask if you want to save passwords but will continue to fill passwords. | 74 // ask if you want to save passwords but will continue to fill passwords. |
49 // Constant name and its value differ because of historical reasons as it | 75 // Constant name and its value differ because of historical reasons as it |
50 // was not deemed important enough to add migration code just for name | 76 // was not deemed important enough to add migration code just for name |
51 // change. | 77 // change. |
52 // See http://crbug.com/392387 | 78 // See http://crbug.com/392387 |
53 extern const char kPasswordManagerSavingEnabled[]; | 79 extern const char kPasswordManagerSavingEnabled[]; |
54 | 80 |
55 // A list of numbers. Each number corresponds to one of the domains monitored | 81 // A list of numbers. Each number corresponds to one of the domains monitored |
56 // for save-password-prompt breakages. That number is a random index into | 82 // for save-password-prompt breakages. That number is a random index into |
57 // the array of groups containing the monitored domain. That group should be | 83 // the array of groups containing the monitored domain. That group should be |
58 // used for reporting that domain. | 84 // used for reporting that domain. |
59 extern const char kPasswordManagerGroupsForDomains[]; | 85 extern const char kPasswordManagerGroupsForDomains[]; |
60 | 86 |
61 } // namespace prefs | 87 } // namespace prefs |
62 } // namespace password_manager | 88 } // namespace password_manager |
63 | 89 |
64 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H _ | 90 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_PREF_NAMES_H _ |
OLD | NEW |