| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Gets the preferences associated with the client. | 70 // Gets the preferences associated with the client. |
| 71 virtual PrefService* GetPrefs() = 0; | 71 virtual PrefService* GetPrefs() = 0; |
| 72 | 72 |
| 73 // Hides the associated request autocomplete dialog (if it exists). | 73 // Hides the associated request autocomplete dialog (if it exists). |
| 74 virtual void HideRequestAutocompleteDialog() = 0; | 74 virtual void HideRequestAutocompleteDialog() = 0; |
| 75 | 75 |
| 76 // Causes the Autofill settings UI to be shown. | 76 // Causes the Autofill settings UI to be shown. |
| 77 virtual void ShowAutofillSettings() = 0; | 77 virtual void ShowAutofillSettings() = 0; |
| 78 | 78 |
| 79 // A user has attempted to use a masked card. Prompt them for further |
| 80 // information to proceed. |
| 81 virtual void ShowUnmaskPrompt() = 0; |
| 82 |
| 79 // Run |save_card_callback| if the credit card should be imported as personal | 83 // Run |save_card_callback| if the credit card should be imported as personal |
| 80 // data. |metric_logger| can be used to log user actions. | 84 // data. |metric_logger| can be used to log user actions. |
| 81 virtual void ConfirmSaveCreditCard( | 85 virtual void ConfirmSaveCreditCard( |
| 82 const AutofillMetrics& metric_logger, | 86 const AutofillMetrics& metric_logger, |
| 83 const base::Closure& save_card_callback) = 0; | 87 const base::Closure& save_card_callback) = 0; |
| 84 | 88 |
| 85 // Returns true if both the platform and the device support scanning credit | 89 // Returns true if both the platform and the device support scanning credit |
| 86 // cards. Should be called before ScanCreditCard(). | 90 // cards. Should be called before ScanCreditCard(). |
| 87 virtual bool HasCreditCardScanFeature() = 0; | 91 virtual bool HasCreditCardScanFeature() = 0; |
| 88 | 92 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 const base::string16& autofilled_value, | 135 const base::string16& autofilled_value, |
| 132 const base::string16& profile_full_name) = 0; | 136 const base::string16& profile_full_name) = 0; |
| 133 | 137 |
| 134 // Informs the client that a user gesture has been observed. | 138 // Informs the client that a user gesture has been observed. |
| 135 virtual void OnFirstUserGestureObserved() = 0; | 139 virtual void OnFirstUserGestureObserved() = 0; |
| 136 }; | 140 }; |
| 137 | 141 |
| 138 } // namespace autofill | 142 } // namespace autofill |
| 139 | 143 |
| 140 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 144 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |