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

Side by Side Diff: chrome/renderer/autofill/fake_content_password_manager_driver.h

Issue 2814093002: [Password Manager] Send a request to the password store if there is a password field on a page (Closed)
Patch Set: Added more tests Created 3 years, 8 months 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/fake_content_password_manager_driver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_
6 #define CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 6 #define CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return password_form_submitted_; 57 return password_form_submitted_;
58 } 58 }
59 59
60 bool called_inpage_navigation() const { return called_inpage_navigation_; } 60 bool called_inpage_navigation() const { return called_inpage_navigation_; }
61 61
62 const base::Optional<autofill::PasswordForm>& 62 const base::Optional<autofill::PasswordForm>&
63 password_form_inpage_navigation() const { 63 password_form_inpage_navigation() const {
64 return password_form_inpage_navigation_; 64 return password_form_inpage_navigation_;
65 } 65 }
66 66
67 bool called_password_forms_parsed() const {
68 return called_password_forms_parsed_;
69 }
70
71 const base::Optional<std::vector<autofill::PasswordForm>>&
72 password_forms_parsed() const {
73 return password_forms_parsed_;
74 }
75
67 bool called_password_forms_rendered() const { 76 bool called_password_forms_rendered() const {
68 return called_password_forms_rendered_; 77 return called_password_forms_rendered_;
69 } 78 }
70 79
71 const base::Optional<std::vector<autofill::PasswordForm>>& 80 const base::Optional<std::vector<autofill::PasswordForm>>&
72 password_forms_rendered() const { 81 password_forms_rendered() const {
73 return password_forms_rendered_; 82 return password_forms_rendered_;
74 } 83 }
75 84
76 void reset_password_forms_rendered() { 85 void reset_password_forms_calls() {
86 called_password_forms_parsed_ = false;
87 password_forms_parsed_ = base::nullopt;
77 called_password_forms_rendered_ = false; 88 called_password_forms_rendered_ = false;
78 password_forms_rendered_ = base::nullopt; 89 password_forms_rendered_ = base::nullopt;
79 } 90 }
80 91
81 bool called_record_save_progress() const { 92 bool called_record_save_progress() const {
82 return called_record_save_progress_; 93 return called_record_save_progress_;
83 } 94 }
84 95
85 bool called_save_generation_field() const { 96 bool called_save_generation_field() const {
86 return called_save_generation_field_; 97 return called_save_generation_field_;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Records whether ShowNotSecureWarning() gets called. 166 // Records whether ShowNotSecureWarning() gets called.
156 bool called_show_not_secure_warning_ = false; 167 bool called_show_not_secure_warning_ = false;
157 // Records whether PasswordFormSubmitted() gets called. 168 // Records whether PasswordFormSubmitted() gets called.
158 bool called_password_form_submitted_ = false; 169 bool called_password_form_submitted_ = false;
159 // Records data received via PasswordFormSubmitted() call. 170 // Records data received via PasswordFormSubmitted() call.
160 base::Optional<autofill::PasswordForm> password_form_submitted_; 171 base::Optional<autofill::PasswordForm> password_form_submitted_;
161 // Records whether InPageNavigation() gets called. 172 // Records whether InPageNavigation() gets called.
162 bool called_inpage_navigation_ = false; 173 bool called_inpage_navigation_ = false;
163 // Records data received via InPageNavigation() call. 174 // Records data received via InPageNavigation() call.
164 base::Optional<autofill::PasswordForm> password_form_inpage_navigation_; 175 base::Optional<autofill::PasswordForm> password_form_inpage_navigation_;
176 // Records whether PasswordFormsParsed() gets called.
177 bool called_password_forms_parsed_ = false;
178 // Records if the list received via PasswordFormsParsed() call was empty.
179 base::Optional<std::vector<autofill::PasswordForm>> password_forms_parsed_;
165 // Records whether PasswordFormsRendered() gets called. 180 // Records whether PasswordFormsRendered() gets called.
166 bool called_password_forms_rendered_ = false; 181 bool called_password_forms_rendered_ = false;
167 // Records data received via PasswordFormsRendered() call. 182 // Records data received via PasswordFormsRendered() call.
168 base::Optional<std::vector<autofill::PasswordForm>> password_forms_rendered_; 183 base::Optional<std::vector<autofill::PasswordForm>> password_forms_rendered_;
169 // Records whether RecordSavePasswordProgress() gets called. 184 // Records whether RecordSavePasswordProgress() gets called.
170 bool called_record_save_progress_ = false; 185 bool called_record_save_progress_ = false;
171 // Records whether SaveGenerationFieldDetectedByClassifier() gets called. 186 // Records whether SaveGenerationFieldDetectedByClassifier() gets called.
172 bool called_save_generation_field_ = false; 187 bool called_save_generation_field_ = false;
173 // Records data received via SaveGenerationFieldDetectedByClassifier() call. 188 // Records data received via SaveGenerationFieldDetectedByClassifier() call.
174 base::Optional<base::string16> save_generation_field_; 189 base::Optional<base::string16> save_generation_field_;
175 // Records whether PasswordNoLongerGenerated() gets called. 190 // Records whether PasswordNoLongerGenerated() gets called.
176 bool called_password_no_longer_generated_ = false; 191 bool called_password_no_longer_generated_ = false;
177 // Records whether PresaveGeneratedPassword() gets called. 192 // Records whether PresaveGeneratedPassword() gets called.
178 bool called_presave_generated_password_ = false; 193 bool called_presave_generated_password_ = false;
179 194
180 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_; 195 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_;
181 }; 196 };
182 197
183 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 198 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/fake_content_password_manager_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698