Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/ui/passwords/password_manager_presenter.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.h ('k') | chrome/browser/ui/pdf/adobe_reader_info_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698