| 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 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" | 5 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" |
| 6 | 6 |
| 7 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} | 7 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} |
| 8 | 8 |
| 9 FakeContentPasswordManagerDriver::~FakeContentPasswordManagerDriver() {} | 9 FakeContentPasswordManagerDriver::~FakeContentPasswordManagerDriver() {} |
| 10 | 10 |
| 11 void FakeContentPasswordManagerDriver::BindRequest( | 11 void FakeContentPasswordManagerDriver::BindRequest( |
| 12 autofill::mojom::PasswordManagerDriverRequest request) { | 12 autofill::mojom::PasswordManagerDriverRequest request) { |
| 13 bindings_.AddBinding(this, std::move(request)); | 13 bindings_.AddBinding(this, std::move(request)); |
| 14 } | 14 } |
| 15 | 15 |
| 16 // mojom::PasswordManagerDriver: | 16 // mojom::PasswordManagerDriver: |
| 17 void FakeContentPasswordManagerDriver::PasswordFormsParsed( | 17 void FakeContentPasswordManagerDriver::PasswordFormsParsed( |
| 18 const std::vector<autofill::PasswordForm>& forms) {} | 18 const std::vector<autofill::PasswordForm>& forms) { |
| 19 called_password_forms_parsed_ = true; |
| 20 password_forms_parsed_ = forms; |
| 21 } |
| 19 | 22 |
| 20 void FakeContentPasswordManagerDriver::PasswordFormsRendered( | 23 void FakeContentPasswordManagerDriver::PasswordFormsRendered( |
| 21 const std::vector<autofill::PasswordForm>& visible_forms, | 24 const std::vector<autofill::PasswordForm>& visible_forms, |
| 22 bool did_stop_loading) { | 25 bool did_stop_loading) { |
| 23 called_password_forms_rendered_ = true; | 26 called_password_forms_rendered_ = true; |
| 24 password_forms_rendered_ = visible_forms; | 27 password_forms_rendered_ = visible_forms; |
| 25 } | 28 } |
| 26 | 29 |
| 27 void FakeContentPasswordManagerDriver::PasswordFormSubmitted( | 30 void FakeContentPasswordManagerDriver::PasswordFormSubmitted( |
| 28 const autofill::PasswordForm& password_form) { | 31 const autofill::PasswordForm& password_form) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const std::string& log) { | 71 const std::string& log) { |
| 69 called_record_save_progress_ = true; | 72 called_record_save_progress_ = true; |
| 70 } | 73 } |
| 71 | 74 |
| 72 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( | 75 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( |
| 73 const autofill::PasswordForm& password_form, | 76 const autofill::PasswordForm& password_form, |
| 74 const base::string16& generation_field) { | 77 const base::string16& generation_field) { |
| 75 called_save_generation_field_ = true; | 78 called_save_generation_field_ = true; |
| 76 save_generation_field_ = generation_field; | 79 save_generation_field_ = generation_field; |
| 77 } | 80 } |
| OLD | NEW |