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
3 // found in the LICENSE file.
4 
5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_
7 
8 namespace password_manager {
9 
10 namespace ui {
11 
12 // The current state of the password manager's UI.
13 enum State {
14   // The password manager has nothing to do with the current site.
15   INACTIVE_STATE,
16 
17   // A password is pending.
18   PENDING_PASSWORD_STATE,
19 
20   // A password has been saved and we wish to display UI confirming the save
21   // to the user.
22   CONFIRMATION_STATE,
23 
24   // A password has been autofilled, or has just been saved. The icon needs
25   // to be visible, in the management state.
26   MANAGE_STATE,
27 
28   // The site has asked user to choose a credential.
29   CREDENTIAL_REQUEST_STATE,
30 
31   // The user was auto signed in to the site. The icon and the auto-signin toast
32   // should be visible.
33   AUTO_SIGNIN_STATE,
34 
35   // The user submitted a form that we consider to be a change password form.
36   // Chrome needs to ask the user to confirm password updating.
37   PENDING_PASSWORD_UPDATE_STATE,
38 
39   // The user was prompted to sign in to Chrome after saving a password.
40   CHROME_SIGN_IN_PROMO_STATE,
41 
42   // A user opted in to account storage is about to lose some unsynced
43   // passwords.
44   WILL_DELETE_UNSYNCED_ACCOUNT_PASSWORDS_STATE,
45 
46   // The user used a profile credential to log in successfully and should see a
47   // prompt that allows them to move the credential to their account store.
48   CAN_MOVE_PASSWORD_TO_ACCOUNT_STATE,
49 
50   // Last compromised password was updated and the user is safe.
51   PASSWORD_UPDATED_SAFE_STATE,
52 
53   // A compromised password was updated and the user has more to fix.
54   PASSWORD_UPDATED_MORE_TO_FIX,
55 
56   // Remind the user to fix the compromised passwords.
57   PASSWORD_UPDATED_UNSAFE_STATE,
58 };
59 
60 }  // namespace ui
61 
62 }  // namespace password_manager
63 
64 #endif  // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_
65