Chromium Code Reviews| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 | 90 |
| 91 // Sets an external delegate. | 91 // Sets an external delegate. |
| 92 void SetExternalDelegate(AutofillExternalDelegate* delegate); | 92 void SetExternalDelegate(AutofillExternalDelegate* delegate); |
| 93 | 93 |
| 94 void ShowAutofillSettings(); | 94 void ShowAutofillSettings(); |
| 95 | 95 |
| 96 // Whether the |field| should show an entry to scan a credit card. | 96 // Whether the |field| should show an entry to scan a credit card. |
| 97 virtual bool ShouldShowScanCreditCard(const FormData& form, | 97 virtual bool ShouldShowScanCreditCard(const FormData& form, |
| 98 const FormFieldData& field); | 98 const FormFieldData& field); |
| 99 | 99 |
| 100 // Whether the |field| belongs to |CREDIT_CARD| |FieldTypeGroup|. | |
|
Mathieu
2016/12/01 21:59:47
// Whether the |field| belongs to the CREDIT_CARD
csashi
2016/12/02 05:15:29
Done.
| |
| 101 virtual bool IsCreditCardField(const FormData& form, | |
| 102 const FormFieldData& field); | |
| 103 | |
| 100 // Whether we should show the signin promo, based on the triggered |field| | 104 // Whether we should show the signin promo, based on the triggered |field| |
| 101 // inside the |form|. | 105 // inside the |form|. |
| 102 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form, | 106 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form, |
| 103 const FormFieldData& field); | 107 const FormFieldData& field); |
| 104 | 108 |
| 105 // Called from our external delegate so they cannot be private. | 109 // Called from our external delegate so they cannot be private. |
| 106 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, | 110 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, |
| 107 int query_id, | 111 int query_id, |
| 108 const FormData& form, | 112 const FormData& form, |
| 109 const FormFieldData& field, | 113 const FormFieldData& field, |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 586 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 590 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 587 OnLoadedServerPredictions_ResetManager); | 591 OnLoadedServerPredictions_ResetManager); |
| 588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 592 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 589 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 593 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 590 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 594 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 591 }; | 595 }; |
| 592 | 596 |
| 593 } // namespace autofill | 597 } // namespace autofill |
| 594 | 598 |
| 595 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 599 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |