| OLD | NEW |
| 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 #include "components/autofill/core/browser/autofill_manager.h" | 5 #include "components/autofill/core/browser/autofill_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 external_delegate_->SetCurrentDataListValues(values, labels); | 731 external_delegate_->SetCurrentDataListValues(values, labels); |
| 732 } | 732 } |
| 733 | 733 |
| 734 void AutofillManager::OnLoadedServerPredictions( | 734 void AutofillManager::OnLoadedServerPredictions( |
| 735 const std::string& response_xml) { | 735 const std::string& response_xml) { |
| 736 // Parse and store the server predictions. | 736 // Parse and store the server predictions. |
| 737 FormStructure::ParseQueryResponse(response_xml, form_structures_.get()); | 737 FormStructure::ParseQueryResponse(response_xml, form_structures_.get()); |
| 738 | 738 |
| 739 // Forward form structures to the password generation manager to detect | 739 // Forward form structures to the password generation manager to detect |
| 740 // account creation forms. | 740 // account creation forms. |
| 741 driver_->DetectAccountCreationForms(form_structures_.get()); | 741 driver_->PropagateAutofillPredictions(form_structures_.get()); |
| 742 | 742 |
| 743 // If the corresponding flag is set, annotate forms with the predicted types. | 743 // If the corresponding flag is set, annotate forms with the predicted types. |
| 744 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); | 744 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); |
| 745 } | 745 } |
| 746 | 746 |
| 747 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { | 747 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { |
| 748 unmask_response_ = response; | 748 unmask_response_ = response; |
| 749 real_pan_client_.UnmaskCard(unmasking_card_, response); | 749 real_pan_client_.UnmaskCard(unmasking_card_, response); |
| 750 } | 750 } |
| 751 | 751 |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 return false; | 1462 return false; |
| 1463 | 1463 |
| 1464 // Disregard forms that we wouldn't ever autofill in the first place. | 1464 // Disregard forms that we wouldn't ever autofill in the first place. |
| 1465 if (!form.ShouldBeParsed()) | 1465 if (!form.ShouldBeParsed()) |
| 1466 return false; | 1466 return false; |
| 1467 | 1467 |
| 1468 return true; | 1468 return true; |
| 1469 } | 1469 } |
| 1470 | 1470 |
| 1471 } // namespace autofill | 1471 } // namespace autofill |
| OLD | NEW |