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

Side by Side Diff: components/webdata/autofill/autofill_webdata.h

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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 COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ 5 #ifndef COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_
6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ 6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 // Schedules a task to add form fields to the web database. 27 // Schedules a task to add form fields to the web database.
28 virtual void AddFormFields( 28 virtual void AddFormFields(
29 const std::vector<FormFieldData>& fields) = 0; 29 const std::vector<FormFieldData>& fields) = 0;
30 30
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 base::string16& name,
37 const string16& prefix, 37 const base::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. 41 // Removes form elements recorded for Autocomplete from the database.
42 virtual void RemoveFormElementsAddedBetween( 42 virtual void RemoveFormElementsAddedBetween(
43 const base::Time& delete_begin, const base::Time& delete_end) = 0; 43 const base::Time& delete_begin, const base::Time& delete_end) = 0;
44 44
45 virtual void RemoveExpiredFormElements() = 0; 45 virtual void RemoveExpiredFormElements() = 0;
46 virtual void RemoveFormValueForElementName(const string16& name, 46 virtual void RemoveFormValueForElementName(const base::string16& name,
47 const string16& value) = 0; 47 const base::string16& value) = 0;
48 48
49 // 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.
50 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; 50 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0;
51 51
52 // 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.
53 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; 53 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0;
54 54
55 // Schedules a task to remove an Autofill profile from the web database. 55 // Schedules a task to remove an Autofill profile from the web database.
56 // |guid| is the identifer of the profile to remove. 56 // |guid| is the identifer of the profile to remove.
57 virtual void RemoveAutofillProfile(const std::string& guid) = 0; 57 virtual void RemoveAutofillProfile(const std::string& guid) = 0;
(...skipping 21 matching lines...) Expand all
79 // consumer owns the credit cards. 79 // consumer owns the credit cards.
80 virtual WebDataServiceBase::Handle GetCreditCards( 80 virtual WebDataServiceBase::Handle GetCreditCards(
81 WebDataServiceConsumer* consumer) = 0; 81 WebDataServiceConsumer* consumer) = 0;
82 82
83 // Removes Autofill records from the database. 83 // Removes Autofill records from the database.
84 virtual void RemoveAutofillDataModifiedBetween( 84 virtual void RemoveAutofillDataModifiedBetween(
85 const base::Time& delete_begin, const base::Time& delete_end) = 0; 85 const base::Time& delete_begin, const base::Time& delete_end) = 0;
86 }; 86 };
87 87
88 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ 88 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698