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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void FillCreditCardForm(int query_id, | 116 virtual void FillCreditCardForm(int query_id, |
117 const FormData& form, | 117 const FormData& form, |
118 const FormFieldData& field, | 118 const FormFieldData& field, |
119 const CreditCard& credit_card); | 119 const CreditCard& credit_card); |
120 void DidShowSuggestions(bool is_new_popup, | 120 void DidShowSuggestions(bool is_new_popup, |
121 const FormData& form, | 121 const FormData& form, |
122 const FormFieldData& field); | 122 const FormFieldData& field); |
123 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 123 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
124 void OnDidPreviewAutofillFormData(); | 124 void OnDidPreviewAutofillFormData(); |
125 | 125 |
| 126 // This method should be called after a user accepts an Autofill suggestion. |
| 127 void OnUserDidAcceptAutofillSuggestion(int unique_id); |
| 128 |
126 // Remove the credit card or Autofill profile that matches |unique_id| | 129 // Remove the credit card or Autofill profile that matches |unique_id| |
127 // from the database. Returns true if deletion is allowed. | 130 // from the database. Returns true if deletion is allowed. |
128 bool RemoveAutofillProfileOrCreditCard(int unique_id); | 131 bool RemoveAutofillProfileOrCreditCard(int unique_id); |
129 | 132 |
130 // Remove the specified Autocomplete entry. | 133 // Remove the specified Autocomplete entry. |
131 void RemoveAutocompleteEntry(const base::string16& name, | 134 void RemoveAutocompleteEntry(const base::string16& name, |
132 const base::string16& value); | 135 const base::string16& value); |
133 | 136 |
134 // Returns true when the Wallet card unmask prompt is being displayed. | 137 // Returns true when the Wallet card unmask prompt is being displayed. |
135 bool IsShowingUnmaskPrompt(); | 138 bool IsShowingUnmaskPrompt(); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 AutocompleteOffRespectedForAutocomplete); | 479 AutocompleteOffRespectedForAutocomplete); |
477 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 480 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
478 DontSaveCvcInAutocompleteHistory); | 481 DontSaveCvcInAutocompleteHistory); |
479 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); | 482 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); |
480 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 483 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
481 }; | 484 }; |
482 | 485 |
483 } // namespace autofill | 486 } // namespace autofill |
484 | 487 |
485 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 488 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |