| OLD | NEW |
| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 void ShowNotSecureWarning(base::i18n::TextDirection text_direction, | 151 void ShowNotSecureWarning(base::i18n::TextDirection text_direction, |
| 152 const gfx::RectF& bounds) override; | 152 const gfx::RectF& bounds) override; |
| 153 | 153 |
| 154 void RecordSavePasswordProgress(const std::string& log) override; | 154 void RecordSavePasswordProgress(const std::string& log) override; |
| 155 | 155 |
| 156 void SaveGenerationFieldDetectedByClassifier( | 156 void SaveGenerationFieldDetectedByClassifier( |
| 157 const autofill::PasswordForm& password_form, | 157 const autofill::PasswordForm& password_form, |
| 158 const base::string16& generation_field) override; | 158 const base::string16& generation_field) override; |
| 159 | 159 |
| 160 void CheckSafeBrowsingReputation(const GURL& form_action) override; |
| 161 |
| 160 // Records whether ShowPasswordSuggestions() gets called. | 162 // Records whether ShowPasswordSuggestions() gets called. |
| 161 bool called_show_pw_suggestions_ = false; | 163 bool called_show_pw_suggestions_ = false; |
| 162 // Records data received via ShowPasswordSuggestions() call. | 164 // Records data received via ShowPasswordSuggestions() call. |
| 163 int show_pw_suggestions_key_ = -1; | 165 int show_pw_suggestions_key_ = -1; |
| 164 base::Optional<base::string16> show_pw_suggestions_username_; | 166 base::Optional<base::string16> show_pw_suggestions_username_; |
| 165 int show_pw_suggestions_options_ = -1; | 167 int show_pw_suggestions_options_ = -1; |
| 166 // Records whether ShowNotSecureWarning() gets called. | 168 // Records whether ShowNotSecureWarning() gets called. |
| 167 bool called_show_not_secure_warning_ = false; | 169 bool called_show_not_secure_warning_ = false; |
| 168 // Records whether PasswordFormSubmitted() gets called. | 170 // Records whether PasswordFormSubmitted() gets called. |
| 169 bool called_password_form_submitted_ = false; | 171 bool called_password_form_submitted_ = false; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 185 bool called_record_save_progress_ = false; | 187 bool called_record_save_progress_ = false; |
| 186 // Records whether SaveGenerationFieldDetectedByClassifier() gets called. | 188 // Records whether SaveGenerationFieldDetectedByClassifier() gets called. |
| 187 bool called_save_generation_field_ = false; | 189 bool called_save_generation_field_ = false; |
| 188 // Records data received via SaveGenerationFieldDetectedByClassifier() call. | 190 // Records data received via SaveGenerationFieldDetectedByClassifier() call. |
| 189 base::Optional<base::string16> save_generation_field_; | 191 base::Optional<base::string16> save_generation_field_; |
| 190 // Records whether PasswordNoLongerGenerated() gets called. | 192 // Records whether PasswordNoLongerGenerated() gets called. |
| 191 bool called_password_no_longer_generated_ = false; | 193 bool called_password_no_longer_generated_ = false; |
| 192 // Records whether PresaveGeneratedPassword() gets called. | 194 // Records whether PresaveGeneratedPassword() gets called. |
| 193 bool called_presave_generated_password_ = false; | 195 bool called_presave_generated_password_ = false; |
| 194 | 196 |
| 197 // Records whether CheckSafeBrowsingReputation() gets called. |
| 198 bool called_check_safe_browsing_reputation_ = false; |
| 199 |
| 195 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_; | 200 mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_; |
| 196 }; | 201 }; |
| 197 | 202 |
| 198 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ | 203 #endif // CHROME_RENDERER_AUTOFILL_FAKE_CONTENT_PASSWORD_MANAGER_DRIVER_H_ |
| OLD | NEW |