Chromium Code Reviews| Index: components/password_manager/core/browser/password_form_manager.h |
| diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h |
| index b855d159a6190cbab9ea43eac97e3dd126b5150e..caed562ce5199ae8b18de1e0abc05597f40ab56b 100644 |
| --- a/components/password_manager/core/browser/password_form_manager.h |
| +++ b/components/password_manager/core/browser/password_form_manager.h |
| @@ -254,6 +254,18 @@ class PasswordFormManager : public PasswordStoreConsumer { |
| // Called when the user didn't interact with Update UI. |
| void OnNoInteractionOnUpdate(); |
| + // Called when the user accepts a generated password. |
| + void PresaveGeneratedPassword(const autofill::PasswordForm& form); |
| + |
| + // Called when the user changes the generated password. |
| + void UpdatePresavedPassword(const autofill::PasswordForm& form); |
| + |
| + // Called when the user removes the generated password. |
| + void RemovePresavedPassword(); |
| + |
| + // Called after successful login on the form with generated password. |
|
dvadym
2016/04/06 12:44:23
nit: generated -> a generated
kolos1
2016/04/07 13:05:18
Done.
|
| + void ReplacePresavedPasswordWithPendingCredentials(PasswordStore* store); |
| + |
| private: |
| // ManagerAction - What does the manager do with this form? Either it |
| // fills it, or it doesn't. If it doesn't fill it, that's either |
| @@ -493,6 +505,10 @@ class PasswordFormManager : public PasswordStoreConsumer { |
| // |provisionally_saved_form_| and |best_matches_|. |
| autofill::PasswordForm pending_credentials_; |
| + // Stores the form with generated password till the user makes successful |
| + // login or removes the generated password. |
| + std::unique_ptr<autofill::PasswordForm> presaved_form_; |
| + |
| // Whether pending_credentials_ stores a new login or is an update |
| // to an existing one. |
| bool is_new_login_; |