Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Returns true if the value/identifier is deletable. Fills out
127 // |title| and |body| with relevant user-facing text.
128 bool GetDeletionConfirmationText(const base::string16& value,
129 int identifier,
130 base::string16* title,
131 base::string16* body);
132
126 // Remove the credit card or Autofill profile that matches |unique_id| 133 // Remove the credit card or Autofill profile that matches |unique_id|
127 // from the database. Returns true if deletion is allowed. 134 // from the database. Returns true if deletion is allowed.
128 bool RemoveAutofillProfileOrCreditCard(int unique_id); 135 bool RemoveAutofillProfileOrCreditCard(int unique_id);
129 136
130 // Remove the specified Autocomplete entry. 137 // Remove the specified Autocomplete entry.
131 void RemoveAutocompleteEntry(const base::string16& name, 138 void RemoveAutocompleteEntry(const base::string16& name,
132 const base::string16& value); 139 const base::string16& value);
133 140
134 // Returns true when the Wallet card unmask prompt is being displayed. 141 // Returns true when the Wallet card unmask prompt is being displayed.
135 bool IsShowingUnmaskPrompt(); 142 bool IsShowingUnmaskPrompt();
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 AutocompleteOffRespectedForAutocomplete); 483 AutocompleteOffRespectedForAutocomplete);
477 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 484 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
478 DontSaveCvcInAutocompleteHistory); 485 DontSaveCvcInAutocompleteHistory);
479 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); 486 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard);
480 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 487 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
481 }; 488 };
482 489
483 } // namespace autofill 490 } // namespace autofill
484 491
485 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 492 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_external_delegate.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698