OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Move to AUTO_SIGNIN_STATE. |local_forms| can't be empty. | 52 // Move to AUTO_SIGNIN_STATE. |local_forms| can't be empty. |
53 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms); | 53 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms); |
54 | 54 |
55 // Move to CONFIRMATION_STATE. | 55 // Move to CONFIRMATION_STATE. |
56 void OnAutomaticPasswordSave( | 56 void OnAutomaticPasswordSave( |
57 scoped_ptr<password_manager::PasswordFormManager> form_manager); | 57 scoped_ptr<password_manager::PasswordFormManager> form_manager); |
58 | 58 |
59 // Move to MANAGE_STATE or INACTIVE_STATE for PSL matched passwords. | 59 // Move to MANAGE_STATE or INACTIVE_STATE for PSL matched passwords. |
60 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map); | 60 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map); |
61 | 61 |
62 // Move to BLACKLIST_STATE. | |
63 void OnBlacklistBlockedAutofill( | |
64 const autofill::PasswordFormMap& password_form_map); | |
65 | |
66 // Move to INACTIVE_STATE. | 62 // Move to INACTIVE_STATE. |
67 void OnInactive(); | 63 void OnInactive(); |
68 | 64 |
69 // Moves the object to |state| without resetting the internal data. Allowed: | 65 // Moves the object to |state| without resetting the internal data. Allowed: |
70 // * -> BLACKLIST_STATE | 66 // * -> BLACKLIST_STATE |
71 // * -> MANAGE_STATE | 67 // * -> MANAGE_STATE |
72 void TransitionToState(password_manager::ui::State state); | 68 void TransitionToState(password_manager::ui::State state); |
73 | 69 |
74 // Updates the internal state applying |changes|. | 70 // Updates the internal state applying |changes|. |
75 void ProcessLoginsChanged( | 71 void ProcessLoginsChanged( |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // The current state of the password manager UI. | 134 // The current state of the password manager UI. |
139 password_manager::ui::State state_; | 135 password_manager::ui::State state_; |
140 | 136 |
141 // The client used for logging. | 137 // The client used for logging. |
142 password_manager::PasswordManagerClient* client_; | 138 password_manager::PasswordManagerClient* client_; |
143 | 139 |
144 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); | 140 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); |
145 }; | 141 }; |
146 | 142 |
147 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 143 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
OLD | NEW |