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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Remove the credit card or Autofill profile that matches |unique_id| | 126 // Remove the credit card or Autofill profile that matches |unique_id| |
127 // from the database. | 127 // from the database. Returns true if deletion is allowed. |
128 void RemoveAutofillProfileOrCreditCard(int unique_id); | 128 bool RemoveAutofillProfileOrCreditCard(int unique_id); |
129 | 129 |
130 // Remove the specified Autocomplete entry. | 130 // Remove the specified Autocomplete entry. |
131 void RemoveAutocompleteEntry(const base::string16& name, | 131 void RemoveAutocompleteEntry(const base::string16& name, |
132 const base::string16& value); | 132 const base::string16& value); |
133 | 133 |
134 // Returns true when the Wallet card unmask prompt is being displayed. | 134 // Returns true when the Wallet card unmask prompt is being displayed. |
135 bool IsShowingUnmaskPrompt(); | 135 bool IsShowingUnmaskPrompt(); |
136 | 136 |
137 // Returns the present form structures seen by Autofill manager. | 137 // Returns the present form structures seen by Autofill manager. |
138 const std::vector<FormStructure*>& GetFormStructures(); | 138 const std::vector<FormStructure*>& GetFormStructures(); |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 469 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
470 FormSubmittedAutocompleteEnabled); | 470 FormSubmittedAutocompleteEnabled); |
471 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 471 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
472 AutocompleteOffRespectedForAutocomplete); | 472 AutocompleteOffRespectedForAutocomplete); |
473 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 473 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
474 }; | 474 }; |
475 | 475 |
476 } // namespace autofill | 476 } // namespace autofill |
477 | 477 |
478 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 478 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |