OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORD_MANAGER_PRESENTER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... | |
39 void UpdatePasswordLists(); | 39 void UpdatePasswordLists(); |
40 | 40 |
41 void Initialize(); | 41 void Initialize(); |
42 | 42 |
43 // Gets the password entry at |index|. | 43 // Gets the password entry at |index|. |
44 const autofill::PasswordForm* GetPassword(size_t index); | 44 const autofill::PasswordForm* GetPassword(size_t index); |
45 | 45 |
46 // Gets the password exception entry at |index|. | 46 // Gets the password exception entry at |index|. |
47 const autofill::PasswordForm* GetPasswordException(size_t index); | 47 const autofill::PasswordForm* GetPasswordException(size_t index); |
48 | 48 |
49 // Updates the password value of the entry at |index|. | |
vabr (Chromium)
2014/08/22 10:11:44
nit: This whole comment could be shortened to:
"Up
jaekyeom
2014/08/25 05:15:51
Done.
| |
50 // |index| the entry index to be updated. | |
51 // |password_value| the new password value. | |
52 void UpdatePassword(size_t index, const base::string16& password_value); | |
53 | |
49 // Removes the saved password entry at |index|. | 54 // Removes the saved password entry at |index|. |
50 // |index| the entry index to be removed. | 55 // |index| the entry index to be removed. |
51 void RemoveSavedPassword(size_t index); | 56 void RemoveSavedPassword(size_t index); |
52 | 57 |
53 // Removes the saved password exception entry at |index|. | 58 // Removes the saved password exception entry at |index|. |
54 // |index| the entry index to be removed. | 59 // |index| the entry index to be removed. |
55 void RemovePasswordException(size_t index); | 60 void RemovePasswordException(size_t index); |
56 | 61 |
57 // Requests the plain text password for entry at |index| to be revealed. | 62 // Requests the plain text password for entry at |index| to be revealed. |
58 // |index| The index of the entry. | 63 // |index| The index of the entry. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 // Used to determine whether or not to reveal plaintext passwords. | 134 // Used to determine whether or not to reveal plaintext passwords. |
130 base::TimeTicks last_authentication_time_; | 135 base::TimeTicks last_authentication_time_; |
131 | 136 |
132 // UI view that owns this presenter. | 137 // UI view that owns this presenter. |
133 PasswordUIView* password_view_; | 138 PasswordUIView* password_view_; |
134 | 139 |
135 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); | 140 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); |
136 }; | 141 }; |
137 | 142 |
138 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ | 143 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ |
OLD | NEW |