| 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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 // Multimap from sort key to password forms. | 26 // Multimap from sort key to password forms. |
| 27 using DuplicatesMap = | 27 using DuplicatesMap = |
| 28 std::multimap<std::string, std::unique_ptr<autofill::PasswordForm>>; | 28 std::multimap<std::string, std::unique_ptr<autofill::PasswordForm>>; |
| 29 | 29 |
| 30 enum class PasswordEntryType { SAVED, BLACKLISTED }; | 30 enum class PasswordEntryType { SAVED, BLACKLISTED }; |
| 31 | 31 |
| 32 class PasswordUIView; | 32 class PasswordUIView; |
| 33 | 33 |
| 34 class Profile; | |
| 35 | |
| 36 // Contains the common logic used by a PasswordUIView to | 34 // Contains the common logic used by a PasswordUIView to |
| 37 // interact with PasswordStore. It provides completion callbacks for | 35 // interact with PasswordStore. It provides completion callbacks for |
| 38 // PasswordStore operations and updates the view on PasswordStore changes. | 36 // PasswordStore operations and updates the view on PasswordStore changes. |
| 39 class PasswordManagerPresenter | 37 class PasswordManagerPresenter |
| 40 : public password_manager::PasswordStore::Observer { | 38 : public password_manager::PasswordStore::Observer { |
| 41 public: | 39 public: |
| 42 // |password_view| the UI view that owns this presenter, must not be NULL. | 40 // |password_view| the UI view that owns this presenter, must not be NULL. |
| 43 explicit PasswordManagerPresenter(PasswordUIView* password_view); | 41 explicit PasswordManagerPresenter(PasswordUIView* password_view); |
| 44 ~PasswordManagerPresenter() override; | 42 ~PasswordManagerPresenter() override; |
| 45 | 43 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Used to determine whether or not to reveal plaintext passwords. | 150 // Used to determine whether or not to reveal plaintext passwords. |
| 153 base::TimeTicks last_authentication_time_; | 151 base::TimeTicks last_authentication_time_; |
| 154 | 152 |
| 155 // UI view that owns this presenter. | 153 // UI view that owns this presenter. |
| 156 PasswordUIView* password_view_; | 154 PasswordUIView* password_view_; |
| 157 | 155 |
| 158 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); | 156 DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter); |
| 159 }; | 157 }; |
| 160 | 158 |
| 161 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ | 159 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_ |
| OLD | NEW |