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

Side by Side Diff: chrome/browser/api/webdata/autofill_web_data.h

Issue 12987023: Rip autofill code out of webdataservice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change method name in AutofillTable Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ 5 #ifndef CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_
6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ 6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 // Initiates the request for a vector of values which have been entered in 31 // Initiates the request for a vector of values which have been entered in
32 // form input fields named |name|. The method OnWebDataServiceRequestDone of 32 // form input fields named |name|. The method OnWebDataServiceRequestDone of
33 // |consumer| gets called back when the request is finished, with the vector 33 // |consumer| gets called back when the request is finished, with the vector
34 // included in the argument |result|. 34 // included in the argument |result|.
35 virtual WebDataServiceBase::Handle GetFormValuesForElementName( 35 virtual WebDataServiceBase::Handle GetFormValuesForElementName(
36 const string16& name, 36 const string16& name,
37 const string16& prefix, 37 const string16& prefix,
38 int limit, 38 int limit,
39 WebDataServiceConsumer* consumer) = 0; 39 WebDataServiceConsumer* consumer) = 0;
40 40
41 // Removes form elements recorded for Autocomplete from the database.
42 virtual void RemoveFormElementsAddedBetween(
43 const base::Time& delete_begin, const base::Time& delete_end) = 0;
44
41 virtual void RemoveExpiredFormElements() = 0; 45 virtual void RemoveExpiredFormElements() = 0;
42 virtual void RemoveFormValueForElementName(const string16& name, 46 virtual void RemoveFormValueForElementName(const string16& name,
43 const string16& value) = 0; 47 const string16& value) = 0;
44 48
45 // Schedules a task to add an Autofill profile to the web database. 49 // Schedules a task to add an Autofill profile to the web database.
46 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; 50 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0;
47 51
48 // Schedules a task to update an Autofill profile in the web database. 52 // Schedules a task to update an Autofill profile in the web database.
49 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; 53 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0;
50 54
(...skipping 15 matching lines...) Expand all
66 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; 70 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0;
67 71
68 // Schedules a task to remove a credit card from the web database. 72 // Schedules a task to remove a credit card from the web database.
69 // |guid| is identifer of the credit card to remove. 73 // |guid| is identifer of the credit card to remove.
70 virtual void RemoveCreditCard(const std::string& guid) = 0; 74 virtual void RemoveCreditCard(const std::string& guid) = 0;
71 75
72 // Initiates the request for all credit cards. The method 76 // Initiates the request for all credit cards. The method
73 // OnWebDataServiceRequestDone of |consumer| gets called when the request is 77 // OnWebDataServiceRequestDone of |consumer| gets called when the request is
74 // finished, with the credit cards included in the argument |result|. The 78 // finished, with the credit cards included in the argument |result|. The
75 // consumer owns the credit cards. 79 // consumer owns the credit cards.
76 virtual WebDataServiceBase::Handle 80 virtual WebDataServiceBase::Handle GetCreditCards(
77 GetCreditCards(WebDataServiceConsumer* consumer) = 0; 81 WebDataServiceConsumer* consumer) = 0;
82
83 // Removes Autofill records from the database.
84 virtual void RemoveAutofillDataModifiedBetween(
85 const base::Time& delete_begin, const base::Time& delete_end) = 0;
78 }; 86 };
79 87
80 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ 88 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698