| 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // Sets an external delegate. | 88 // Sets an external delegate. |
| 89 void SetExternalDelegate(AutofillExternalDelegate* delegate); | 89 void SetExternalDelegate(AutofillExternalDelegate* delegate); |
| 90 | 90 |
| 91 void ShowAutofillSettings(); | 91 void ShowAutofillSettings(); |
| 92 | 92 |
| 93 // Whether the |field| should show an entry to scan a credit card. | 93 // Whether the |field| should show an entry to scan a credit card. |
| 94 virtual bool ShouldShowScanCreditCard(const FormData& form, | 94 virtual bool ShouldShowScanCreditCard(const FormData& form, |
| 95 const FormFieldData& field); | 95 const FormFieldData& field); |
| 96 | 96 |
| 97 // Whether we should show the signin promo, based on the triggered |field| |
| 98 // inside the |form|. |
| 99 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form, |
| 100 const FormFieldData& field); |
| 101 |
| 97 // Called from our external delegate so they cannot be private. | 102 // Called from our external delegate so they cannot be private. |
| 98 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, | 103 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, |
| 99 int query_id, | 104 int query_id, |
| 100 const FormData& form, | 105 const FormData& form, |
| 101 const FormFieldData& field, | 106 const FormFieldData& field, |
| 102 int unique_id); | 107 int unique_id); |
| 103 virtual void FillCreditCardForm(int query_id, | 108 virtual void FillCreditCardForm(int query_id, |
| 104 const FormData& form, | 109 const FormData& form, |
| 105 const FormFieldData& field, | 110 const FormFieldData& field, |
| 106 const CreditCard& credit_card, | 111 const CreditCard& credit_card, |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 602 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 598 DontSaveCvcInAutocompleteHistory); | 603 DontSaveCvcInAutocompleteHistory); |
| 599 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 604 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 600 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 605 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 601 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 606 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 602 }; | 607 }; |
| 603 | 608 |
| 604 } // namespace autofill | 609 } // namespace autofill |
| 605 | 610 |
| 606 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 611 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |