| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   757   // Forward form structures to the password generation manager to detect |   757   // Forward form structures to the password generation manager to detect | 
|   758   // account creation forms. |   758   // account creation forms. | 
|   759   driver_->DetectAccountCreationForms(form_structures_.get()); |   759   driver_->DetectAccountCreationForms(form_structures_.get()); | 
|   760  |   760  | 
|   761   // If the corresponding flag is set, annotate forms with the predicted types. |   761   // If the corresponding flag is set, annotate forms with the predicted types. | 
|   762   driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); |   762   driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); | 
|   763 } |   763 } | 
|   764  |   764  | 
|   765 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { |   765 void AutofillManager::OnUnmaskResponse(const UnmaskResponse& response) { | 
|   766   unmask_response_ = response; |   766   unmask_response_ = response; | 
|   767   // TODO(estade): use month/year. |   767   real_pan_client_.UnmaskCard(unmasking_card_, response); | 
|   768   real_pan_client_.UnmaskCard(unmasking_card_, base::UTF16ToASCII(response.cvc), |  | 
|   769                               response.risk_data); |  | 
|   770 } |   768 } | 
|   771  |   769  | 
|   772 void AutofillManager::OnUnmaskPromptClosed() { |   770 void AutofillManager::OnUnmaskPromptClosed() { | 
|   773   real_pan_client_.CancelRequest(); |   771   real_pan_client_.CancelRequest(); | 
|   774   driver_->RendererShouldClearPreviewedForm(); |   772   driver_->RendererShouldClearPreviewedForm(); | 
|   775   unmasking_card_ = CreditCard(); |   773   unmasking_card_ = CreditCard(); | 
|   776   unmask_response_ = UnmaskResponse(); |   774   unmask_response_ = UnmaskResponse(); | 
|   777 } |   775 } | 
|   778  |   776  | 
|   779 IdentityProvider* AutofillManager::GetIdentityProvider() { |   777 IdentityProvider* AutofillManager::GetIdentityProvider() { | 
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1456     return false; |  1454     return false; | 
|  1457  |  1455  | 
|  1458   // Disregard forms that we wouldn't ever autofill in the first place. |  1456   // Disregard forms that we wouldn't ever autofill in the first place. | 
|  1459   if (!form.ShouldBeParsed()) |  1457   if (!form.ShouldBeParsed()) | 
|  1460     return false; |  1458     return false; | 
|  1461  |  1459  | 
|  1462   return true; |  1460   return true; | 
|  1463 } |  1461 } | 
|  1464  |  1462  | 
|  1465 }  // namespace autofill |  1463 }  // namespace autofill | 
| OLD | NEW |