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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 ScopedVector<autofill::PasswordForm> federated_credentials, | 53 ScopedVector<autofill::PasswordForm> federated_credentials, |
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. |
vabr (Chromium)
2015/10/13 10:45:20
nit: When you are already touching this, please ex
melandory
2015/10/13 13:48:16
Done.
| |
64 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map); | 64 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map, |
65 const GURL& origin); | |
65 | 66 |
66 // Move to INACTIVE_STATE. | 67 // Move to INACTIVE_STATE. |
67 void OnInactive(); | 68 void OnInactive(); |
68 | 69 |
69 // Moves the object to |state| without resetting the internal data. Allowed: | 70 // Moves the object to |state| without resetting the internal data. Allowed: |
70 // * -> MANAGE_STATE | 71 // * -> MANAGE_STATE |
71 void TransitionToState(password_manager::ui::State state); | 72 void TransitionToState(password_manager::ui::State state); |
72 | 73 |
73 // Updates the internal state applying |changes|. | 74 // Updates the internal state applying |changes|. |
74 void ProcessLoginsChanged( | 75 void ProcessLoginsChanged( |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 // The current state of the password manager UI. | 138 // The current state of the password manager UI. |
138 password_manager::ui::State state_; | 139 password_manager::ui::State state_; |
139 | 140 |
140 // The client used for logging. | 141 // The client used for logging. |
141 password_manager::PasswordManagerClient* client_; | 142 password_manager::PasswordManagerClient* client_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); | 144 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState); |
144 }; | 145 }; |
145 | 146 |
146 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ | 147 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_STATE_H_ |
OLD | NEW |