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