| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Password store consumer for populating the password list and exceptions. | 131 // Password store consumer for populating the password list and exceptions. |
| 132 PasswordListPopulater populater_; | 132 PasswordListPopulater populater_; |
| 133 PasswordExceptionListPopulater exception_populater_; | 133 PasswordExceptionListPopulater exception_populater_; |
| 134 | 134 |
| 135 std::vector<scoped_ptr<autofill::PasswordForm>> password_list_; | 135 std::vector<scoped_ptr<autofill::PasswordForm>> password_list_; |
| 136 std::vector<scoped_ptr<autofill::PasswordForm>> password_exception_list_; | 136 std::vector<scoped_ptr<autofill::PasswordForm>> password_exception_list_; |
| 137 DuplicatesMap password_duplicates_; | 137 DuplicatesMap password_duplicates_; |
| 138 DuplicatesMap password_exception_duplicates_; | 138 DuplicatesMap password_exception_duplicates_; |
| 139 | 139 |
| 140 // Whether to show stored passwords or not. | |
| 141 BooleanPrefMember show_passwords_; | |
| 142 | |
| 143 // Indicates whether or not the password manager should require the user to | |
| 144 // reauthenticate before revealing plaintext passwords. | |
| 145 const bool require_reauthentication_; | |
| 146 | |
| 147 // The last time the user was successfully authenticated. | 140 // The last time the user was successfully authenticated. |
| 148 // Used to determine whether or not to reveal plaintext passwords. | 141 // Used to determine whether or not to reveal plaintext passwords. |
| 149 base::TimeTicks last_authentication_time_; | 142 base::TimeTicks last_authentication_time_; |
| 150 | 143 |
| 151 // UI view that owns this presenter. | 144 // UI view that owns this presenter. |
| 152 PasswordUIView* password_view_; | 145 PasswordUIView* password_view_; |
| 153 | 146 |
| 154 // User pref for storing accept languages. | 147 // User pref for storing accept languages. |
| 155 std::string languages_; | 148 std::string languages_; |
| 156 | 149 |
| 157 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); | 150 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); |
| 158 }; | 151 }; |
| 159 | 152 |
| 160 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ | 153 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ |
| OLD | NEW |