| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const GURL& origin); | 54 const GURL& origin); |
| 55 | 55 |
| 56 // Move to AUTO_SIGNIN_STATE. |local_forms| can't be empty. | 56 // Move to AUTO_SIGNIN_STATE. |local_forms| can't be empty. |
| 57 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms); | 57 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms); |
| 58 | 58 |
| 59 // Move to CONFIRMATION_STATE. | 59 // Move to CONFIRMATION_STATE. |
| 60 void OnAutomaticPasswordSave( | 60 void OnAutomaticPasswordSave( |
| 61 scoped_ptr<password_manager::PasswordFormManager> form_manager); | 61 scoped_ptr<password_manager::PasswordFormManager> form_manager); |
| 62 | 62 |
| 63 // Move to MANAGE_STATE or INACTIVE_STATE for PSL matched passwords. | 63 // Move to MANAGE_STATE or INACTIVE_STATE for PSL matched passwords. |
| 64 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map); | 64 // |password_form_map| contains best matches from the password store for the |
| 65 // form which was autofilled, |origin| is an origin of the form which was |
| 66 // autofilled. |
| 67 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map, |
| 68 const GURL& origin); |
| 65 | 69 |
| 66 // Move to INACTIVE_STATE. | 70 // Move to INACTIVE_STATE. |
| 67 void OnInactive(); | 71 void OnInactive(); |
| 68 | 72 |
| 69 // Moves the object to |state| without resetting the internal data. Allowed: | 73 // Moves the object to |state| without resetting the internal data. Allowed: |
| 70 // * -> MANAGE_STATE | 74 // * -> MANAGE_STATE |
| 71 void TransitionToState(password_manager::ui::State state); | 75 void TransitionToState(password_manager::ui::State state); |
| 72 | 76 |
| 73 // Updates the internal state applying |changes|. | 77 // Updates the internal state applying |changes|. |
| 74 void ProcessLoginsChanged( | 78 void ProcessLoginsChanged( |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // The current state of the password manager UI. | 141 // The current state of the password manager UI. |
| 138 password_manager::ui::State state_; | 142 password_manager::ui::State state_; |
| 139 | 143 |
| 140 // The client used for logging. | 144 // The client used for logging. |
| 141 password_manager::PasswordManagerClient* client_; | 145 password_manager::PasswordManagerClient* client_; |
| 142 | 146 |
| 143 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); | 147 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); |
| 144 }; | 148 }; |
| 145 | 149 |
| 146 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 150 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
| OLD | NEW |