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

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

Issue 2604453003: Show Form-Not-Secure warning on page load (Closed)
Patch Set: meacer, jochen comments Created 3 years, 11 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
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 26 matching lines...) Expand all
37 return show_pw_suggestions_options_; 37 return show_pw_suggestions_options_;
38 } 38 }
39 39
40 void reset_show_pw_suggestions() { 40 void reset_show_pw_suggestions() {
41 called_show_pw_suggestions_ = false; 41 called_show_pw_suggestions_ = false;
42 show_pw_suggestions_key_ = -1; 42 show_pw_suggestions_key_ = -1;
43 show_pw_suggestions_username_ = base::nullopt; 43 show_pw_suggestions_username_ = base::nullopt;
44 show_pw_suggestions_options_ = -1; 44 show_pw_suggestions_options_ = -1;
45 } 45 }
46 46
47 bool called_show_not_secure_warning() const {
48 return called_show_not_secure_warning_;
49 }
50
47 bool called_password_form_submitted() const { 51 bool called_password_form_submitted() const {
48 return called_password_form_submitted_; 52 return called_password_form_submitted_;
49 } 53 }
50 54
51 const base::Optional<autofill::PasswordForm>& password_form_submitted() 55 const base::Optional<autofill::PasswordForm>& password_form_submitted()
52 const { 56 const {
53 return password_form_submitted_; 57 return password_form_submitted_;
54 } 58 }
55 59
56 bool called_inpage_navigation() const { return called_inpage_navigation_; } 60 bool called_inpage_navigation() const { return called_inpage_navigation_; }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 132
129 void PasswordNoLongerGenerated( 133 void PasswordNoLongerGenerated(
130 const autofill::PasswordForm& password_form) override; 134 const autofill::PasswordForm& password_form) override;
131 135
132 void ShowPasswordSuggestions(int key, 136 void ShowPasswordSuggestions(int key,
133 base::i18n::TextDirection text_direction, 137 base::i18n::TextDirection text_direction,
134 const base::string16& typed_username, 138 const base::string16& typed_username,
135 int options, 139 int options,
136 const gfx::RectF& bounds) override; 140 const gfx::RectF& bounds) override;
137 141
142 void ShowNotSecureWarning(base::i18n::TextDirection text_direction,
143 const gfx::RectF& bounds) override;
144
138 void PasswordAutofillAgentConstructed() override; 145 void PasswordAutofillAgentConstructed() override;
139 146
140 void RecordSavePasswordProgress(const std::string& log) override; 147 void RecordSavePasswordProgress(const std::string& log) override;
141 148
142 void SaveGenerationFieldDetectedByClassifier( 149 void SaveGenerationFieldDetectedByClassifier(
143 const autofill::PasswordForm& password_form, 150 const autofill::PasswordForm& password_form,
144 const base::string16& generation_field) override; 151 const base::string16& generation_field) override;
145 152
146 // Records whether ShowPasswordSuggestions() gets called. 153 // Records whether ShowPasswordSuggestions() gets called.
147 bool called_show_pw_suggestions_ = false; 154 bool called_show_pw_suggestions_ = false;
148 // Records data received via ShowPasswordSuggestions() call. 155 // Records data received via ShowPasswordSuggestions() call.
149 int show_pw_suggestions_key_ = -1; 156 int show_pw_suggestions_key_ = -1;
150 base::Optional<base::string16> show_pw_suggestions_username_; 157 base::Optional<base::string16> show_pw_suggestions_username_;
151 int show_pw_suggestions_options_ = -1; 158 int show_pw_suggestions_options_ = -1;
159 // Records whether ShowNotSecureWarning() gets called.
160 bool called_show_not_secure_warning_ = false;
152 // Records whether PasswordFormSubmitted() gets called. 161 // Records whether PasswordFormSubmitted() gets called.
153 bool called_password_form_submitted_ = false; 162 bool called_password_form_submitted_ = false;
154 // Records data received via PasswordFormSubmitted() call. 163 // Records data received via PasswordFormSubmitted() call.
155 base::Optional<autofill::PasswordForm> password_form_submitted_; 164 base::Optional<autofill::PasswordForm> password_form_submitted_;
156 // Records whether InPageNavigation() gets called. 165 // Records whether InPageNavigation() gets called.
157 bool called_inpage_navigation_ = false; 166 bool called_inpage_navigation_ = false;
158 // Records data received via InPageNavigation() call. 167 // Records data received via InPageNavigation() call.
159 base::Optional<autofill::PasswordForm> password_form_inpage_navigation_; 168 base::Optional<autofill::PasswordForm> password_form_inpage_navigation_;
160 // Records whether PasswordFormsRendered() gets called. 169 // Records whether PasswordFormsRendered() gets called.
161 bool called_password_forms_rendered_ = false; 170 bool called_password_forms_rendered_ = false;
162 // Records data received via PasswordFormsRendered() call. 171 // Records data received via PasswordFormsRendered() call.
163 base::Optional<std::vector<autofill::PasswordForm>> password_forms_rendered_; 172 base::Optional<std::vector<autofill::PasswordForm>> password_forms_rendered_;
164 // Records whether RecordSavePasswordProgress() gets called. 173 // Records whether RecordSavePasswordProgress() gets called.
165 bool called_record_save_progress_ = false; 174 bool called_record_save_progress_ = false;
166 // Records whether PasswordAutofillAgentConstructed() gets called. 175 // Records whether PasswordAutofillAgentConstructed() gets called.
167 bool called_agent_constructed_ = false; 176 bool called_agent_constructed_ = false;
168 // Records whether SaveGenerationFieldDetectedByClassifier() gets called. 177 // Records whether SaveGenerationFieldDetectedByClassifier() gets called.
169 bool called_save_generation_field_ = false; 178 bool called_save_generation_field_ = false;
170 // Records data received via SaveGenerationFieldDetectedByClassifier() call. 179 // Records data received via SaveGenerationFieldDetectedByClassifier() call.
171 base::Optional<base::string16> save_generation_field_; 180 base::Optional<base::string16> save_generation_field_;
172 // Records whether PasswordNoLongerGenerated() gets called. 181 // Records whether PasswordNoLongerGenerated() gets called.
173 bool called_password_no_longer_generated_ = false; 182 bool called_password_no_longer_generated_ = false;
174 // Records whether PresaveGeneratedPassword() gets called. 183 // Records whether PresaveGeneratedPassword() gets called.
175 bool called_presave_generated_password_ = false; 184 bool called_presave_generated_password_ = false;
176 185
177 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_; 186 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_;
178 }; 187 };
179 188
180 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ 189 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/DEPS ('k') | chrome/renderer/autofill/fake_content_password_manager_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698